True... but the prevailing metaphor in the expression language would suggest doing:
concatenate({1,2}, {3,4})
which won't work if it's a method in ArrayToken. You can also put it in UtilityFunctions and then call it from a method in ArrayToken to get both... This is probably the best solution (there are several examples of similar mechanisms already).
Edward
At 06:25 PM 7/31/2004 -0700, Tobin Fricke wrote:
On Sat, 31 Jul 2004, Edward A Lee wrote:
> Much better would be for this to be a static method in > ptolemy.data.expr.UtilityFunctions. Then it automagically becomes a > function in the expression language...
It also seems to automagically become a function in the expression language when given as a method of ArrayToken.. I was able to do:
{1,2}.concatenate({3,4})
and it seemed to work. But maybe there are other reasons to put it in UtilityFunctions.
Tobin
------------ 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]