See Original text in context
method set_value(Mu , Mu \new_val)
Binds the value new_val
to this attribute of object $obj
.
my = A.^attributes(:local)[0];my = A.new;.speak; # OUTPUT: «5».set_value(, 42);.speak; # OUTPUT: «42»
Note that this method violates encapsulation of the object, and should be used with care. Here be dragons.