Quantcast
Channel: Lisp - How to call a function within another function? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Lee Mac for Lisp - How to call a function within another function?

You can pass a function as an argument to another function as demonstrated by the following example:(defun c:add ( / a ) (if (setq a (getint "\nEnter a number to add 2 to it: ")) (+ a 2) ))(defun...

View Article


Answer by Dinesh Vilas Pawar for Lisp - How to call a function within another...

As far as I know, you can not send function name as the parameter, but here I give you a technic which can act like similar.I don't have Autocad install on my machine so I am unable to test this code....

View Article

Lisp - How to call a function within another function?

I am trying to call the following function:(defun c:Add () (setq a (getint "Enter a number to add 2 to it")) (setq a (+ a 2)))Inside this LOOPER function:(defun LOOPER (func) ;repeats 'func' until user...

View Article
Browsing all 3 articles
Browse latest View live