Project

General

Profile

Actions

Bug #3960

closed

RExpression2 - support arrayType(arrayType(....)) tokens

Added by ben leinfelder over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
actors
Target version:
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

Actions #1

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.

Actions #2

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 #3

Updated by ben leinfelder over 15 years ago

out of my control!

Actions #4

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 3960

Actions

Also available in: Atom PDF