[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] macrolet
From: |
Lui Fungsin |
Subject: |
Re: [Chicken-users] macrolet |
Date: |
Fri, 7 Mar 2008 13:36:45 -0800 |
Ah, a bad example ...
You're right that this should work:
(define-macro (defun name args . body)
`(define ,name
(lambda ,args
(call/cc
(lambda (return-from)
,@body)))))
The reason why I wrote it that way is entirely because of my CL mentality:
you have to do (funcall return-from ...) in CL instead of just (return-from ...)
And to write that similar macro in CL return-from has to be a special
form instead of a function.
But anyway, I still missed macrolet ... :-)
Re: [Chicken-users] macrolet, Alex Shinn, 2008/03/09