[plt-scheme] %, @, ^, etc.

From: Joe Marshall (jrm at ccs.neu.edu)
Date: Tue Sep 9 12:33:07 EDT 2003

If you leave out the stars, then the global variable
looks just like a lexical one.  The stars indicate that you won't
find the variable in any of the enclosing contexts, and perhaps
not even in the module, so you shouldn't look for it.

----- Original Message ----- 
From: "Michael Sperber" <sperber at informatik.uni-tuebingen.de>
To: "Joe Marshall" <jrm at ccs.neu.edu>
Cc: "Eli Barzilay" <eli at barzilay.org>; <plt-scheme at po.cs.brown.edu>
Sent: Tuesday, September 09, 2003 11:36
Subject: Re: [plt-scheme] %, @, ^, etc.


> >>>>> "Joe" == Joe Marshall <jrm at ccs.neu.edu> writes:
>
> Joe>   For list-related administrative tasks:
> Joe>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Joe> From: "Michael Sperber" <sperber at informatik.uni-tuebingen.de>
> Joe> To: "Joe Marshall" <jrm at ccs.neu.edu>
> Joe> Cc: "Eli Barzilay" <eli at barzilay.org>; <plt-scheme at po.cs.brown.edu>
> Joe> Sent: Tuesday, September 09, 2003 10:12
> Joe> Subject: Re: [plt-scheme] %, @, ^, etc.
>
>
> >> >>>>> "Joe" == Joe Marshall <jrm at ccs.neu.edu> writes:
> Joe> >
> Joe> I disagree.  The reason `globals' are `global' is that they are
> Joe> visible
> Joe> to large amounts of code, and modifications to them can have
> Joe> far-reaching
> Joe> effects.
> Joe> >
> >> Can't a modification to a global variable *always* have far-reaching
> Joe> effects?
>
> Joe> Yes.  That's why you *always* put stars around them.
> Joe> (What's the objection?)
>
> But if there are *always* stars, you can just leave them out, can't
> you, because they serve no real mnemonic purpose?  *I* don't have an
> objection---*you* disagreed with me :-)
>
> -- 
> Cheers =8-} Mike
> Friede, Völkerverständigung und überhaupt blabla
>



Posted on the users mailing list.