setSlotValue
setSlotValue(g_standardObjects_slotNameg_value) =>g_value
Description
Sets the s_slotName slot of g_standardObject to g_value.
An error is signaled if there is no such slot for the g_standardObject. This function bypasses any @writer generic function for the slot that you specified in the defclass declaration for the g_standardObject’s class.
Arguments
|
An instance of the standardObject class or a subclass of standardObject. |
|
|
The slot symbol used as the slot name in the |
|
Value Returned
Examples
defclass( GeometricObject ()
(
( x @initarg x )
( y @initarg y )
)
) => t
geom = makeInstance( 'GeometricObject ?x 0 )
=> stdobj:0x34b018
slotValue( geom 'y ) => \*slotUnbound\*
setSlotValue( geom 'y 2 ) => 2
slotValue( geom 'y ) => 2
Related Topics
Return to top