Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

putpropq

putpropq( 
sl_id 
g_value 
S_name 
) 
=> g_value
sl_id->S_name = g_value 
=> g_value

Description

Adds properties to symbols or disembodied property lists. Identical to putprop except that S_name is not evaluated. If the property already exists, the old value is replaced with a new one.

putpropq corresponds to -> = as an assignment operator. So, obj->prop = value is equivalent to putpropq(obj value prop).

Arguments

sl_id

Symbol or disembodied property list.

g_value

Value of the named property.

S_name

Name of the property.

Value Returned

g_value

Value of the named property.

Examples

Both examples are equivalent expressions that set the property x on symbol s to 3.

putpropq('s 1+2 x)    
=> 3
y = 'x                
=> x
y->x = 1+2            
=> 3

Related Topics

get

putpropq

putpropqq

Mapping Symbols to Values


Return to top
 ⠀
X