[Maxima] Question: scoping rules
macrakis at alum.mit.edu
Sat Jul 5 15:28:48 CDT 2008
On Sat, Jul 5, 2008 at 4:16 PM, andre maute <andre.maute at gmx.de> wrote:
> Are there docus on pitfalls with dynamic scoping?
Well, the obvious difficulty with dynamic scoping is unintended
variable capture. There is a pretty large literature on static vs.
dynamic scope in Lisp; look at some of the early papers on Scheme. In
the olden days, the problems with dynamic scope were often called "the
On the other hand, dynamic scope is useful for things like
block( [fpprec: 100], f( ... ) ]
which will execute f in an environment where the bigfloat precision is 100.
More information about the Maxima