dynamic-scope
What are the new rules for variable scoping in Emacs 24?
Emacs 24 now has lexically-scoped variables. It also still has dynamically-scoped variables, of course. Now that it has both, I\'m quite confused about when a variable will have which kind of scope. T[详细]
2023-04-10 11:54 分类:问答When is it appropriate to set a request-scoped variable in a JSP?
In my experience, it is rarely/never necessary to set scope=\"request\" on an EL variable. For example, I have a page that, given an item parameter, constructs a URL specific to that item based on it[详细]
2023-04-09 06:36 分类:问答How to overcome the lack of local variable for emacs lisp closure
I\'m now studying Emacs Lisp from the reference manual and Common Lisp from a LISP Book. from the Common Lisp book[详细]
2023-03-25 08:02 分类:问答scala: what is the inner class method for dynamic scoping?
i\'m trying to evaluate all 3 methods of dynamic scoping described here (https://wiki.scala-lang.org/display/SYGN/Dynamic-scope) and i understand all but the "inner class method". it is desc[详细]
2023-03-07 08:53 分类:问答Adopting dynamic scoping of variables
Imagine you are designing your own programming language. Very simple language for quite specific purpose. It has functions, loops and variables. And you want to make use of dynamic scoping for variabl[详细]
2023-01-18 15:12 分类:问答Emulating lisp cons cells in Tcl
A list in lisp is a series of cons cells, but in Tcl, a list is a string with whitespace separating the elements.For translating code from lisp to tcl, one might simply take lisp lists and translate t[详细]
2023-01-15 19:08 分类:问答Closures and dynamic scope?
I think I understand why there is a danger in allowing closures in a language using dynamic scope.That is, it seems you will be able to close the variable OK, but when trying to read it you will only[详细]
2023-01-15 07:27 分类:问答Dynamic Scoping - Deep Binding vs Shallow Binding
I\'ve been trying to get my head around shallow binding and deep binding, wikipedia doesn\'t do a good job of explaining it properly. Say I have the following code, what would the output be if the lan[详细]
2022-12-11 13:56 分类:问答