Next: obj-exp-undefine_method, Previous: obj-exp-pointer_object, Up: obj-exp [Contents][Index]
store_slot/2
store_slot(+SlotName, +NewValue)
atom
term
Stores NewValue in 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 modify the slots of another object.
instantiation_error
either argument is unbound.
type_error
NewValue is not of the appropriate type for Slotname.
domain_error
Slotname is not the name of a slot of the current class.
permission_error
Slotname is a private slot of a superclass.
<</2
, fetch_slot/2