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

symeval

symeval( 
s_symbol 
[ e_environment ] 
) 
=> g_result

Description

Returns the value of the named variable.

symeval is slightly more efficient than eval and can be used in place of eval when you are sure that the argument being evaluated is indeed a variable name.

Arguments

s_symbol

Name of the variable.

e_environment

If this argument is given, SKILL++ semantics is assumed. The variable name will be looked up within the given (lexical) environment.

Value Returned

g_result

Value of the named variable.

Examples

x = 5
symeval( 'x )
=> 5
symeval( 'y ) 
=> unbound    ;Assumes y is unbound.

Related Topics

eval


Return to top
 ⠀
X