Next: obj-exp-inherit, Previous: obj-exp-end_class, Up: obj-exp [Contents][Index]
fetch_slot/2
fetch_slot(+SlotName, -Value)
atom
term
Fetches Value from the slot specified by SlotName.
This predicate may only appear in the body of a method clause, and it always operates on the object to which that message is sent. It cannot be used to directly access the slots of another object.
instantiation_error
Slot is unbound.
domain_error
Slot is not the name of a slot of the current class.
permission_error
Slot is a private slot of a superclass.
>>/2
, store_slot/2