SET-SLOT

[GENERIC-FUNCTION]


OM 6.1
Function Reference
ARGUMENTS:
  - object object  
  - slot slot  
  - value value  

Description:

Modifies the value of an object's slot.

<object> must be an object instance (e.g. the first output of a factory box, or the output of an instance or global variable box).
<slot> is a slot name corresponding to one of the corresponding classe's slots.
<value> is the new value to set in the <slot> field of <object>

Returns the modified object <object>.

Warning : It is advised not to use GET-SLOT with predefined OM object, which have particular internal slots value management.
Use rather the get/set slots mechanism provided by the SLOTS boxes (shift+drag an object or factory box).