next up previous

12.7.3 Setgen

The setgen function allows the user to set the starting number used by gensym and gensym* (see sections 12.7.1 and 12.7.2).

Syntax

(setgen <integer-expression>)

where <num> must be a positive integer value and is the value returned by this function. All subsequent calls to gensym will return a sequenced symbol with the numeric portion of the symbol starting at <num>.

Example

CLIPS> (setgen 32)
32
CLIPS>

After this, calls to gensym will return gen32, gen33, etc.


next up previous