changing argument variables

Discussion of Common Lisp

Re: changing argument variables

Postby knobo » Mon Dec 22, 2008 4:22 pm

How about this:

(defparameter x 0)

(defun six (y)
(declare (ignore y))
6)

(define-modify-macro hello () six)

(hello x)

It depends what you want to use it for.
knobo
 

Previous

Return to Common Lisp

Who is online

Users browsing this forum: Google [Bot] and 1 guest