I think a dynamic variable is more like a global variable but with a stack of values; where the stack reflects the modifications of the run-time call stack.<br><br><div class="gmail_quote">On Mon, Sep 5, 2011 at 2:27 PM, Benjohn Barnes <span dir="ltr"><<a href="mailto:benjohn@fysh.org">benjohn@fysh.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On 5 Sep 2011, at 15:51, Raffael Cavallaro wrote:<br>
<br>
><br>
> On Sep 5, 2011, at 10:02 AM, Steve Graham wrote:<br>
><br>
>> Can someone help?<br>
><br>
> Marc's reply is, of course, succinct and correct.<br>
><br>
> If you want a fuller understanding of scope, I've found the wikipedia article to be relatively clear and to the point:<br>
> <<a href="http://en.wikipedia.org/wiki/Scope_%28computer_science%29" target="_blank">http://en.wikipedia.org/wiki/Scope_(computer_science)</a>><br>
><br>
> It covers both lexical (a.k.a. "static") scope, and dynamic scope, and gives examples.<br>
<br>
</div>If you've got a C language kind of background, to a reasonable approximation, dynamic scoping is a lot like a global variable: anyone who reads or writes a given binding sees the same one. It caries similar risks to a global variable, but there are also some handy things you can do with them such as set up exception handlers. Static / lexical scoping is like the normal local variables in a function.<br>

<br>
Hope that helps (and that if it's nonsense someone will correct me).<br>
<br>
Cheers,<br>
        B<br>
<font color="#888888"><br>
--<br>
<a href="mailto:benjohn@fysh.org">benjohn@fysh.org</a> - Twitter @benjohnbarnes - Skype benjohnbarnes - Mobile <a href="tel:%2B44%20%280%29%207968%20851%20636" value="+447968851636">+44 (0) 7968 851 636</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br>