Arrays in Rev
Troy Rollins
troy at rpsystems.net
Sun Jul 11 15:31:57 EDT 2004
On Jul 11, 2004, at 3:07 PM, Richard Gaskin wrote:
> My post tells a story: it begins with things the reader understands
> (Judy is very familiar with working with delimited lists) and branches
> out to how associative arrays can be used to solve related problems
> with much greater flexibility and, in many cases, ease.
I understand quite well Rev's associative arrays, at least on the base
level that they have been described here and in the documentation, and
I use them in my work.
But, I'll go ahead and ask for some additional insight. As you may
know, I come from an extensive background in Director, which has syntax
derived from the same source as Transcript, but evolved to being "list
based" rather than "string based" as Transcript is.
In Director, it is VERY common to have extremely deeply nested arrays,
often with tens of thousands of items dispersed across many layers of
array nesting. These nested arrays can contain both associative arrays,
and linear lists, and those in turn can contain either as well, and so
on. Contents of these lists are easily target-able, and very rapidly
accessible.
How is this done in Transcript, if at all? If not, what is the logical
replacement? In some cases, I've gone to generating stacks and using
cards to organize such data, but would prefer a variable structure for
the speed, especially considering that the user never has to actually
see the data in the stored/working form.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net
More information about the use-livecode
mailing list