gentag() — Silicon Graphics
NAME
gentag - returns a unique integer for use as a tag
SPECIFICATION
C
Tag gentag()
FORTRAN
integer*4 function gentag()
Pascal
function gentag: Tag;
DESCRIPTION
gentag generates a unique integer to be used as a tag. Tags must be unique within the enclosing object. The gentag command provides a unique 31-bit integer for use when the tag has no significance beyond labeling a command. Note that the generated tag is unique when gentag is executed. If the user later defines a tag with the same value, the first command tag is lost.
Use of gentag is not required to name an object.
SEE ALSO
genobj, istag
NOTE
This command can be used only in immediate mode.
Version 2.4 — May 08, 1986