Re: global variable not being recognized by script object
Re: global variable not being recognized by script object
- Subject: Re: global variable not being recognized by script object
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Thu, 1 Mar 2001 14:15:20 +0100
At 20:03 -0800 28/02/01, Richard 23 wrote:
>
Another method I'll use to avoid using "my" and "tell" concerns script
>
libraries. If I load in a script object and specify its parent as the
>
calling script I can get around having to direct calls at the child by
>
telling the child to call a handler in the parent. Any calls to the
>
child's handlers within the parent's handler can refer to the child's
>
handlers without an explicit reference. This is not true of script
>
properties but it is half of the battle!
Funny, I would have writen it the other way around:
>
Another method I'll use to avoid using "my" and "tell" concerns script
>
libraries. If I load in a script object and specify _it as the parent to the calling script_ I can get around having to direct calls at the _parent_ by
>
telling the child to call a handler in the parent. Any calls to the
>
_parent_'s handlers within the _child_'s handler can refer to the _parent_'s
>
handlers without an explicit reference.
Or maybe I'm completely missing the point of the 'parent property' directive?
Serge
\\//\//\// Serge Belleudy-d'Espinose
// // // Institut Jacques Monod
//\//\//\\ WWW:
http://www.ijm.jussieu.fr/