Actions
Bug #3960
closedRExpression2 - support arrayType(arrayType(....)) tokens
Start date:
04/07/2009
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
3960
Description
the Ptolemy expression:
{{1}, "b", {3}}
will result in a Token with type:
arrayType(arrayType(string,1),3)
We need to [recursively] handle ArrayTokens that are input to the RExpression2 actor
Updated by ben leinfelder over 15 years ago
can now handle arrayType(arrayType(...) so that the given expression ends up looking like:
{"1", "b", "3"}
Notice that the list structure was dropped since there is only a single value for each. When the one of the inner arrays has more than a single item, the list structure is used:
{{1,2}, "b", {3}}
becomes
{{"1", "2"}, {"b"}, {"3"}}
And, yes, everything is converted to their string representation as noted in another ticket.
Updated by Oliver Soong over 15 years ago
Why make assumptions about dropping single element list structures? Maybe I want a list of single element lists.
Actions