File 'base/serial.tcl' (part of 'Pool_Base')

Description (short)
Generation of sequence numbers
Written by
Andreas Kupries
Description
Generator for globally unique sequence-numbers. Useful as object handles, filenames, ... It is allowed to give a used number back. The system will reuse such numbers. The namespace holding its procedures is used to encapsulate the internal state.
Depends on
Tcl
Keywords
serial numbers, sequence, handles


::pool::serial::delete (s)

Marks the specified serial number s as deleted. This number will be reused by ::pool::serial::new.
Argument: s serial number to revoke

::pool::serial::new ()

Generates a new serial number.
Returns: The new serial number.


Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries