src/swipl-devel/packages/xpce/man/refmanual/md/constant.md

class constant {#class-constant}

Instances of class constant represent unique values. This uniqueness is represented and guaranteed by the object-reference.

Class constant defines the instance variables <-name and <-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 ->protect. See also class bool.

@see class bool

Instance variables {#class-constant-instvars}

Send methods {#class-constant-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.