brad condran wrote:
>... 
> use this instead
> symbol( "roomunit" & currentUnit)

You can actually skip the 'symbol' statement, it slows the handler down
(for large numbers of iterations anyway, it's seemingly 1:1 at 500, 1:2
at 5000 and 1:15 at 50000) and the reference will be successful anyway.

from D8.5 mac message window:


foo = [#a1:21,#a2:22] -- or ["a1":21,"a2":22], both work
x = 2
put foo["a"&x]
-- 22


If you've explicitly defined the list using symbols, it might be clearer
to someone trying to use this code next year if you use the symbol function.
-- 
Carl West    [EMAIL PROTECTED]
617.262.8830 x246    
--------------------
To gain face, give it
To lose face, try to save it 
Or take it away 
                   - F. Eysenkopf

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to