About variable.

Frank D. Engel, Jr. fde101 at fjrhome.net
Thu Mar 31 13:18:44 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When would you have to use a global variable, in so far as something 
cannot be accomplished with a custom property?

On Mar 31, 2005, at 12:41 PM, Mark Wieder wrote:

> Mikey-
>
> Thursday, March 31, 2005, 6:00:06 AM, you wrote:
>
> M> The thing about "globals" in rev is that they're not really 
> "globals"
> M> but, in old basic parlance "commons".  If it was "global" you would
> M> define it as global and it would be everywhere in Rev without 
> further
> M> "global" statements inside objects.
>
> That's exactly right. There's been quite a bit of discussion of
> globals here over the last couple of years. Basically declaring a
> variable as "global" flags it as a candidate for being used in other
> scripts. Then declaring the variable a global in a second script
> references the first instance of the variable. The whole thing is a
> bit error-prone, if you ask me. I avoid globals whenever I can, but
> sometimes you gotta use them.
>
> -- 
> -Mark Wieder
>  mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCTD8H7aqtWrR9cZoRAtzlAJ4jzf5Uv+kTNtO1+ozUXMNam218RgCfR4J5
s8N+B1W0Il5Pgny1YqWpc2s=
=lBo/
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list