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

defprop

defprop( 
s_id 
g_value 
s_name 
) 
=> g_value

Description

Adds properties to symbols but none of its arguments are evaluated. This is a syntax form.

The same as putprop except that none of its arguments are evaluated.

Arguments

s_id

Symbol to add property to.

g_value

Value of the named property.

s_name

Named property.

Value Returned

g_value

Value of the named property.

Examples

Sets property x on symbol s to 3.

defprop(s 3 x)   
=> 3

Sets property x on symbol s to the unevaluated expression 1+2.

defprop(s 1+2 x) 
=> (1+2)

Related Topics

get

putprop


Return to top
 ⠀
X