<</2
+Obj <<
+Att
Sends a message to Obj
to store the value of
Att
in the object. A put message. Att
must be an attribute that can be
stored in objects of Obj
's class.
A clause with <</2
as the principal functor of its head is a
method definition clause. Such clauses only occur within the scope of
a class definition. They are expanded at compile time.
Put methods are automatically generated for public slots.
instantiation_error
domain_error
existence_error
For reasons of efficiency, an existence_error
exception will only be raised if the code that sends the message is
compiled with debugging enabled (see debug_message
), or if the
message is not determined at compile-time. In other circumstances,
the message will simply fail.
Calls to the <</2
predicate will be compiled into
more efficient code if the obj_decl
module is loaded at compile time.
<-/2
, >>/2
, direct_message/4
, message/4
, store_slot/2