Crazy script-only stack question

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jan 23 11:56:12 EST 2018


It isn't This Me that is portable (Mark indicated it shouldn't be used anywhere but in a behavior script itself if I recall) but it is simple Me that is portable. Me will always refer to the object USING a behavior (or not as the case may be) and not the behavior itself. 

Bob S


> On Jan 23, 2018, at 08:49 , Geoff Canyon via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I just checked, and yeah, this me is portable between object scripts and
> behavior scripts, but it seems highly unlikely that the concept itself
> would be portable. i.e. it's far more often the case that a reference to
> me/this me from an object's script *should* be a reference to the control
> itself, not the behavior, and copy-pasting it into a behavior script would
> be an error. "the behavior of me" accomplishes the same thing as "this me"
> in a behavior script, and is far more clear besides.





More information about the use-livecode mailing list