genobj() — Silicon Graphics Beta Release
NAME
genobj - returns a unique integer for use as an object name
SPECIFICATION
C
Object genobj()
FORTRAN
integer*4 function genobj()
Pascal
function genobj: Object;
DESCRIPTION
Object names can be up to 31 bits long and must be unique within the program. genobj generates unique 31-bit integer names. Names might be pointers into data structures, hashed string names or randomly chosen numbers. genobj will not generate an object name that is currently in use. The user must take care in generating names when using a combination of user-defined and genobj-defined names.
Use of genobj is not required to name an object.
SEE ALSO
callobj, gentag, isobj, makeobj
NOTE
This command can be used only in immediate mode.
Version 2.3 — July 04, 1985