messages path

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: messages path

Post by Mark » Sun May 15, 2011 4:04 pm

Hi Bernd,

I'd call that a bug.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: messages path

Post by jacque » Sun May 15, 2011 8:00 pm

Mark wrote:Hi Bernd,

If you want to mimic the HyperCard behaviour, the button that's part of the group should return

card
background
I don't believe background buttons in HC ever passed through the card. The messages went directly to the background, then to the stack. So the current behavior looks correct to me.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: messages path

Post by Mark » Sun May 15, 2011 8:10 pm

Jacque,

You don't see what the problem is. In HyperCard, once a message is sent to the background, it never goes back to the card before continuing to the stack. LiveCode's current behaviour breaks HyperCard stacks. This is incorrect. This is a bug.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: messages path

Post by jacque » Sun May 15, 2011 8:13 pm

Mark wrote:Jacque,

You don't see what the problem is. In HyperCard, once a message is sent to the background, it never goes back to the card before continuing to the stack.
Agreed. That isn't what you said in the part I quoted, which is why I commented.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: messages path

Post by FourthWorld » Mon May 16, 2011 2:51 am

This may sound sacrilegious, but maybe HyperCard was wrong.

The notion of inserting or remove the script of one object (the card) from the message path of an object based on whether that object is a member of a different object (the background) seems an unnecessary ambiguity, and a particularly odd and disjointed one. Why would we not want a single message path for all objects on a given card?

So it breaks a few HC stacks. In mid-2011, what practical impact will that make?

Given that Apple killed HC more than a decade ago, anyone with HC stacks worth porting has probably already ported them to LiveCode, or SuperCard, or the web, or Flash. or something else. Apple hasn't even make a machine capable of natively running the OS HC requires for several years. It was a great tool in its day, but it's day has come and gone a very long time ago. How many stacks worth porting haven't been in all these years?

I would wager the material impact in LiveCode scripts for introducing this anomalous ambiguity from HC's legacy would be far greater than any material cost to what few remaining HC stacks there may be which depend on this oddity and haven't yet been ported to LC or something else.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: messages path

Post by jacque » Mon May 16, 2011 4:25 am

FourthWorld wrote:This may sound sacrilegious, but maybe HyperCard was wrong.

The notion of inserting or remove the script of one object (the card) from the message path of an object based on whether that object is a member of a different object (the background) seems an unnecessary ambiguity, and a particularly odd and disjointed one. Why would we not want a single message path for all objects on a given card?
In HC the message path was pretty rigid, and there was a distinct difference between card and background objects. If an object was on a background, it was already behind the card layer, and it made sense that the card should not get any messages related to it. The message path was like this:

card control
card
background control
background
stack

Wherever you entered the message path, the flow went from there to the engine, and never circled back again. In LC, where the distinction between card and background objects isn't as rigid (and we don't even need to specify) the path can be more circuitous. In either case, the background/group will always get the message after the control does.
FourthWorld wrote:So it breaks a few HC stacks. In mid-2011, what practical impact will that make?
I have to agree with you here. As probably one of the few remaining people who still gets HC conversion work, I know that there are already enough tweaks required that having one more is hardly likely to matter. The first thing I do with a converted stack is to turn off HCAddressing, so the path issue is pretty much moot for me. I wouldn't ask the RR team to spend any time on this at all, the audience for it is so tiny and those of us who still do the occasional conversion can deal with it easily.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply