Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

genobj(3)  —  Unix Programmer’s Manual

NAME

genobj - return a unique integer for use as an object name

SYNOPSIS

C
Object genobj()

FORTRAN
integer function genobj()

Pascal
function genobj: Object;

DESCRIPTION

Object names can be up to 31 bits long and must be unique within the program.  Names might be pointers into data structures or databases, hashed string names, or randomly chosen numbers.  The genobj command generates unique 31-bit integer names, and can be used when object names carry no semantic information beyond a way to refer to an object.  Genobj will not generate an object name that is currently in use.  The user must take the same care in generating names when using a combination of user-defined and genobj-defined names. 

SEE ALSO

callobj, gentag, isobj, makeobj

NOTE

This command can only be used in immediate mode. 

Silicon Graphics  —  R1c

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026