Arrays: new and old keys, i and, man am I annoyed
vokey at uleth.ca
Mon Sep 15 00:49:52 CDT 2008
To quote myself (to which nobody responded):
On 13-Sep-08, at 1:37 AM, Dr. John R. Vokey wrote:
> And they still suffer from an old incongruity that I have complained
> about for years:
> array[fred] differs if fred has been previously defined (i.e., has
> content), in which case the content (value?) of array[fred] is the
> value(fred) of array; otherwise it is the literal fred of array.
put 5 into array[fred]
wait 2secs --wait for it
put 2 into fred
I have asked for ages (back when Metacard was but a pup) that array
literals require quotes (the same discontinuity exists for
properties---try it, please), and nothing. But really, array["fred"]
and array[fred] are really two different entities, no? Even Rev
treats them so, as long as fred, the variable (or fred the property)
has been declared to have value. This inconsistency is more than a
little annoying; it is just stupid.
Please avoid sending me Word or PowerPoint attachments.
-Dr. John R. Vokey
More information about the use-livecode