Arrays: new and old keys, i and, man am I annoyed

John Vokey vokey at uleth.ca
Mon Sep 15 01:49:52 EDT 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.

To wit:

on test
   put 5 into array[fred]
   put array[fred]
   wait 2secs --wait for it
   put 2 into fred
   put array[fred]
end test

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.
See <http://www.gnu.org/philosophy/no-word-attachments.html>

-Dr. John R. Vokey





More information about the use-livecode mailing list