Weirdness Passing Messages

Richard Gaskin ambassador at fourthworld.com
Thu Mar 23 12:28:05 EST 2006


David Burgun wrote:
>  From what you say below, I can understand why put x into me *may*  
> not work, but not why:
> 
> set the text of me to x
> 
> doesn't work either?

Others may disagree, but I consider that a bug and have filed a report 
on it:

<http://support.runrev.com/bugdatabase/show_bug.cgi?id=3418>

If Transcript is to be learnable we must at least expect property 
settings to be consistent.

The "set" command must act like the "set" command, and "me" should 
resolve to the object reference when used in conjunction with "set".

In this case, even if it's an inherited HyperTalk behavior I believe it 
should be updated to be consistent.  The future holds more newcomers 
than old HyperTalkers, and I see no benefit to sacrificing a much larger 
future to adhere to a bad practice used by very few people (if it all) 
in the past.

And there may be no conflict at all in honoring "set" consistently -- 
how did HyperCard handle such cases?


> Also, why in the case where the handler is called from one place it  
> works but if called from within another Handler  it doesn't!

This seems related to the ambiguity of "me": sometimes it refers to the 
object, sometimes to the object's contents.

I'm not sure if this particular case is a bug or an inherited HyperTalk 
"feature" -- maybe Jacque knows?

If this is not how HyperTalk works I would encourage you to create a bug 
report for that one as well.

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the Use-livecode mailing list