lispdoc - results for gensym |
(gensym &optional (thing g)) | Function: Creates a new uninterned symbol whose name is a prefix string (defaults to "G"), followed by a decimal number. Thing, when supplied, will alter the prefix if it is a string, or be used for the decimal number if it is a number, of this symbol. The default value of the number is the current value of *gensym-counter* which is incremented each time it is used.
|
Example:(defun use-new-world () "Make up a new world and use it. The world inherits from the current world." (setf *world* (get-world (gensym "W"))) (setf (world-current *world*) t) *world*) | Mentioned in: CLtL2 - 10.3. Creating Symbols CLtL2 - 19.3. Using the Automatically Defined Constructor Function CLtL2 - 7.2. Generalized Variables CLtL2 - 8.1. Macro Definition HyperSpec - Function GENSYM On Lisp - A Query Interpreter On Lisp - Adding Prolog Features On Lisp - Anaphoric Variants On Lisp - Applications for Macros On Lisp - Avoiding Capture with Gensyms On Lisp - Conditional Evaluation On Lisp - Creating Context On Lisp - Iteration with Multiple Values On Lisp - Macro Characters On Lisp - Macros as Programs On Lisp - Need for Macros On Lisp - New Implementation On Lisp - Number of Evaluations On Lisp - Objects in Plain Lisp On Lisp - Other Structures On Lisp - Recursion on Cdrs (Macros Returning Functions) On Lisp - Recursion on Subtrees (Macros Returning Functions) On Lisp - Referential Transparency On Lisp - The with- Macro PCL - how the reader uses packages PCL - plugging the leaks PCL - the current object stack PCL - the implementation Successful Lisp - chapter20 Successful Lisp - tail recursion |
*print-gensym | |
| Mentioned in: HyperSpec - Variable *PRINT-GENSYM | |
*print-gensym* | Variable: Should #: prefixes be used when printing symbols with null SYMBOL-PACKAGE?
|
| Mentioned in: CLtL2 - 22.1.6. What the Print Function Produces CLtL2 - 22.3.1. Output to Character Streams CLtL2 - 28.2. Functions in the Programmer Interface | |
*gensym-counter | |
| Mentioned in: HyperSpec - Variable *GENSYM-COUNTER | |
*gensym-counter* | Variable: counter for generating unique GENSYM symbols
|
| Mentioned in: CLtL2 - 10.3. Creating Symbols | |
(alexandria.0.dev:make-gensym name) | Function: If NAME is a non-negative integer, calls GENSYM using it. Otherwise NAME must be a string designator, in which case calls GENSYM using the designated string as the argument.
|
(alexandria.0.dev:with-gensyms names &body forms) | Function: Binds each variable named by a symbol in NAMES to a unique symbol around FORMS. Each of NAMES must either be either a symbol, or of the form: (symbol string-designator) Bare symbols appearing in NAMES are equivalent to: (symbol symbol) The string-designator is used as the argument to GENSYM when constructing the unique symbol the named variable will be bound to.
|
(alexandria.0.dev:make-gensym-list length &optional (x g)) | Function: Returns a list of LENGTH gensyms, each generated as if with a call to MAKE-GENSYM, using the second (optional, defaulting to "G") argument.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |