Instances of class constant represent unique values. This uniqueness is represented and guaranteed by the object-reference.
Class constant
defines the instance variables constant<-name
and constant<-summary
for documentation purposes.
The system defines the following constants:
@nil Nothing, not-filled @default Use default value
The user may create constants for a specific application. Constants
may not be deleted as they are automatically protected using
object->protect.
See also class bool.
<-print_name
(used by class text_item)
returns constant<-name
by default.<-summary’,
etc.
->protect’ed
against the garbage collector. It is very uncommon for application
programmers to define new constants.