-> Yes, it's very important.
> So we could drop the EXTENDS keyword,
> replace PROTO by CLASS and allow interfaces
> (IMPLEMENTS). An interface is defined like a PROTO,
> but does not have a body:
>
> INTERFACE Clock [ eventIn TimeSensor tick ].
> INTERFACE Mover [ eventIn SFFloat move ].
> INTERFACE Animator [ eventIn SFBoolean start ] EXTENDS Clock, Mover.
> INTERFACE Talker [ eventIn SFString talk ].
>
> CLASS MyRobot IMPLEMENTS Animator, Talker [ ... ]
> { Robot { ... }
> ...
> }
>
> What do you think of this solution, I think it's intuitive,
> easy to implement and very effective.
I agree. I think it is a good solution.
You did state implicitly that these INTERFACEs are only related with
eventIns, didn't you ? That is, I think that in INTERFACEs, there should
be no fields, exposedFields, or eventOuts. Is my idea right ?
Thanks.
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sungwoo Park, (Castle-Help Naive) homepage : http://compiler.kaist.ac.kr/~gladius e-mail : gladius@compiler.kaist.ac.kr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -