Optional keywords?

J. Landman Gay jacque at hyperactivesw.com
Sat Dec 24 12:26:16 EST 2011

On 12/23/11 9:21 PM, dunbarx at aol.com wrote:
> Is this well known?
> on mouseUp
>    put "ABCDE" into foo
>    answer char 2 foo
> end mouseUp
> This works for all chunk types. But where is the keyword "of" (or
> "in") at line 3? It seems to be optional. Has this always been so?
> Are there other keywords that do not matter?

There are others but I can't remember which they are. I think it's 
probably a case of the engine being so forgiving, and the behavior 
depends on where in the structure the omission occurs. The same is true 
for some unquoted literals which can work at the ends of lines but not 
in the middle.

Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

More information about the Use-livecode mailing list