Product Documentation
Cadence SKILL++ Object System Reference
Product Version IC23.1, June 2023

setSlotValue

setSlotValue( 
g_standardObject 
s_slotName 
g_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

g_standardObject

An instance of the standardObject class or a subclass of standardObject.

s_slotName

The slot symbol used as the slot name in the defclass slot specification.

g_value

Any SKILL data object.

Value Returned

g_value

The value assigned to the slot.

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

Classes and Instances


Return to top
 ⠀
X