fetch_slot/2fetch_slot(+SlotName, -Value)
Fetch 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
domain_error
permission_error
>>/2, store_slot/2