Keys of a custom property array

dunbarx at aol.com dunbarx at aol.com
Sun Mar 3 21:08:50 EST 2013


Mark. Jacque


Mark. The test script I made was in a mouseUp handler in a button, and set a custom property of that same button.


Jacque. It just occurred to me that placing the custom property identifier in parentheses does not force an evaluation, it just helps the parser, well, parse.


Sort of like the old HC caveat where a card reference had to be similarly separated if there was stuff after that reference, or HC would try to identify a bogus descriptor. This was most pertinent to card references, whereas other objects seemed to be immune.


But this is different, and academic, of course, but still bothers me. There is no evaluation with parentheses, though there is with "do". The extra evaluation is not needed, but the engine does seem to like parentheses in this instance. I know that in other cases, here and there, parentheses do help in getting a clean compile, well, just because.


Craig




-----Original Message-----
From: Mark Wieder <mwieder at ahsoftware.net>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Mar 3, 2013 8:41 pm
Subject: Re: Keys of a custom property array


Craig-

Sunday, March 3, 2013, 4:25:29 PM, you wrote:

> do "get the keys of the testArray of me"

What's me?

-- 
-Mark Wieder
 mwieder at ahsoftware.net


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the Use-livecode mailing list