Quantum tunneling in LiveCode

Ralph DiMola rdimola at evergreeninfo.net
Mon Mar 2 19:11:39 EST 2015


Stephen,

In #8 below does the message make it to the stack? Did you just leave the
stack out for clarity in your example? Like...

I am a card --> I am a strange group --> I am a stack

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of stgoldberg at aol.com
Sent: Monday, March 02, 2015 4:07 PM
To: use-livecode at lists.runrev.com
Subject: Quantum tunneling in LiveCode

In quantum mechanics something can be in more than one place at once.  A
paradox of sorts seems to occur in the message chain with groups in
LiveCode. Try this:


1.  Place a button on a card.
2.  Make the button a group. Set the group's backgroundBehavior to true.
3.  Place the following script in the button:


on mouseUp
  answer "I am a button"
  pass mouseUp
end mouseUp


4.  Place the following script in the group:


on mouseUp
  answer "I am a strange group"
  pass mouseUp
end mouseUp


5.  On the card script write:


on mouseUp
  answer "I am a card"
  pass mouseUp
end mouseUp


6.  In the stack script write:


on mouseUp
  answer "I am a stack"
end mouseUp




7. Now click on the button.  You get the sequence:
I am a button --> I am a strange group --> I am a card --> I am a stack


8.  Now click on the card.  You get:
I am a card --> I am a strange group


Where is the strange group, before or after the card?


Stephen Goldberg
www.medmaster.net




_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list