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

class name {#class-name}

Class name defines atomic text in PCE. That is, each instance of this class represents a unique text or, in other words, two name objects represent the same text if-and-only-if they have the same object reference (hence are the same objects).

Names, like atoms in Prolog and keywords in Lisp, are used as identifiers: class names, method names, etc. The uniqueness feature guarantees fast mapping from names to the named objects (see class hash_table).

PCE does not garbage collect names. Names should thus only be used for constants and not for handling text that is continuously modified. Class string is designed for handling temporary and changing textual information.

Send methods {#class-name-send}

Get methods {#class-name-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.