"the effective visibility"

Tereza Snyder tereza at califex.com
Sun Aug 10 10:44:43 EDT 2008


On Aug 10, 2008, at 2:40 AM, Eric Chatonet wrote:

> Bonjour Tereza,
>
> Brilliant :-)
>


Avec plasir!

Replacing " of " with comma is an utterly reliable method. As a  
programmer whose first professional work was in assembler, I'm always  
looking for efficient-appearing* ways to script common operations.

Speaking in the general area of object-hierarchy traversal, I almost  
convinced Mark Waddingham in Las Vegas to consider a new keyword: "my"

In any script, "my stack" would refer to the stack in which the  
script's object lives. Same with "my group". Seems to me to be very  
handy for scripts that would run while the default stack is set to  
different stack as, for example, in dialogs. I often end up putting  
any handler of substance in group or card or stack scripts so that I  
can use "of me" to refer to local objects. I might change my  
programming practice if I had an easy-to-type and semantically  
transparent way that didn't require parsing "the long id of me" just  
to affect the contents of an adjacent control!


t


* I say 'efficient-appearing' because who knows what is going on under  
the hood?





-- 
Tereza Snyder
Califex Software, Inc.





More information about the use-livecode mailing list