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
Value Returned
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
Return to top