GENSYM

Synopsis
GENSYM
Description

Outputs a unique word each time it is invoked during the current session. The words are of the form g1, g2, g3, etc. When a new session is created, the counter restarts at 1.

This is typically used to dynamically generate variable names.

Example
MAKE GENSYM 1
SHOW :g1
1
MAKE GENSYM "Hello
SHOW :g2
Hello

SourceForge.net Logo