store_slot/2
store_slot(
+SlotName,
+NewValue)
Store 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
type_error
domain_error
permission_error
<</2
, fetch_slot/2