Just one more question for Richmond re globals

Richmond Mathewson richmondmathewson at gmail.com
Mon May 11 11:53:17 EDT 2009


Ahh.  Now that is not as quite as simple as it looks.

I never use globals for the simple reason that my programs are for 
teaching English
as a Foreign Language and, therefore, not highly mathematical.

Most of my programs consist of dragging small images around, typing
text into fields, playing 1-10 word dialogue sound files and so on.

Graham Samuel wrote:
> I can't help flogging this moribund nag, because I did not understand 
> Richmond's response to my question. Do you NEVER use globals, 
> Richmond? I think that would make you pretty unusual, unless you are 
> completely sold on custom props...
>
> Just curious really.
>
> Graham
>
> Richmond Mathewson recently wrote:
>
>>> BTW I can't quite follow Richmond when he says
>>>
>>>> Funny, I've never declared a variable in Runtime Revolution
>>>
>>> Do you never carry values from stack to stack or handler to handler
>>> via globals? Maybe you always use custom props. But AFAIK, when you
>>> write:
>>>
>>> put "Richmond" into myGlobal
>>>
>>> in a handler without a corresponding 'global' declaration, and then in
>>> another one in a different galaxy, far away, you write:
>>>
>>> put myGlobal
>>>
>>> you won't see "Richmond" in the message box, will you?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list