[kepler-dev] Token.toString method(s)

Dan Higgins higgins at nceas.ucsb.edu
Fri Feb 17 09:58:23 PST 2006

Hi Christopher,

    Jing and I were looking over the Ptolemy code for the Token class. 
The 'toString' method does indeed return "nil" when there is a missing 
value. However, when you look at the code for derived token classes like 
IntToken or DoubleToken, each has its own version of 'toString' that 
overrides the Token base class. Don't we need to change the 'toString' 
method in all the derived classes to return 'nil' when the token is set 
to that? [If not, it makes the RExpression actor conversion much more 
difficult, especially for arrays of tokens.]


Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-893-5127
National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
Santa Barbara, CA 93195

More information about the Kepler-dev mailing list