On 2017-08-03 05:39, Monte Goulding via use-livecode wrote:
Er… why if you know the name wouldn’t you type it unquoted? Are you
really suggesting to put any expression there? The property/function
ambiguity with `the` will make our heads explode!

For the reason Dr Hawkins originally asked about ;)

There is no ambiguity if we have:

   1. 'the' IDENTIFIER 'of' ...
   2. 'the' STRING 'of' ...
   3. 'the' '(' EXPRESSION ')' 'of' ...

The key thing about making property syntax more flexible (e.g. multiple words - unquoted) is to enforce 'the' and 'of' - indeed, if you use a custom (non engine keyword) name of any kind then both are required so that's good :)

In any case, I got around to looking at it this morning and case (2) almost works already. Doing:

  set the "catness" of this stack to "very"

  put the customKeys of this stack

  put the "catness" of this stack

Results in a catness (no quotes) key in the stack's custom properties, but an execution error (source is not a container) when evaluating it.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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

Reply via email to