Sunday 15 June 2014

"Fake" global lexical variables in Common Lisp -


In this section, the "global variable and constant" section states:

"General Lisp Global There are no lexical variables, so a naming convention is used to ensure that globals, which are dynamically bound, their names are never overlapped with local variables.

This global variable named Lexical, with the potentially named global variable and A You should not use this trick, unless you can help you understand not to publish a library of it before. "

Is there me the meaning of the last sentence.

last sentence,

You should not use this trick, Unless you publish a library first, it removes it.

means that if you do something that follows the Global Lexical Variable, then implementing that simulation should not be obvious to the user. For example, if you can do an simulate using some scheme by using defined-symbol-macro , but if you do, then it will be used for the user Should be transparent. See Ron Gart for an example of a library, which removes it. ??? Line

No comments:

Post a Comment