I am experimenting with Ptolemy II, and have a question about
defining Typed Composite Actors in Vergil.  I want to define a
little composite that does some mixed arithmetic and logical
operations on its input; viz. "(input * 2) & 65535" to implement
a left shift of an 16-bit operand.  Whgen I try to define it in
Vergil, I get error messages about TokenDouble not being
compatible with operations requiring TokenInteger.  It appears
that, since the type of the input isn't known yet, it won't let
me define the unit.  Is there a way to define this in such a way
that the types will be checked at simulation time rather than
compile time?

Thanks,

 -- Bill Wood

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to