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

class variable {#class-variable}

A variable object describes of an instance-variable (slot, attribute) of an object. Variables are managed by classes and used (among other things) to access slots in objects.

A variable has a <-name, which must be unique for this class and all super-classes of this class. A variable has a <-type, which defines the type of value that can be stored in the corresponding slot. Finally, a variable defines <-access: the behaviour that is associated with it.

@see class->instance_variable @see class type @see topic Specification @see object<-slot @see object->slot @see tool ClassBrowser

Instance variables {#class-variable-instvars}

Send methods {#class-variable-send}

Get methods {#class-variable-get}



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.