I suspect the problem is different... I suspect that "input" is resolving to double because you are feeding it a double, and the & operator won't operate on double...
Edward At 03:47 PM 4/17/2002 -0500, Bill Wood wrote: >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] ------------ Edward A. Lee, Professor 518 Cory Hall, UC Berkeley, Berkeley, CA 94720 phone: 510-642-0455, fax: 510-642-2739 [EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]