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

setf_<helper>

setf_<helper>( 
g_new
[ g_cell ]
) 
=> g_result

Description

An expander function for setf, which returns the result of the corresponding setf operation. In the function, replace helper with the expander name.

Arguments

g_new

New value to be set for g_cell.

g_cell

Cell to be modified.

Value Returned

g_result

Result of the corresponding setf operation.

Examples

The following is an example of the helper function for getSkillPath:

defun(setf_getSkillPath (new)
  if(listp(new)
    setSkillPath(new)
    setSkillPath(list(new)))) ; alters the skill path with setf
setf(getSkillPath()   "/home/user/temp")  ; now skill path changed to "/home/user/temp"

Related Topics

setf

setf Helper Functions


Return to top
 ⠀
X