couriose with args

Started by Dmi, May 29, 2007, 03:06:37 AM

Previous topic - Next topic

Dmi

Just for fun :-)
(define-macro (ttt1 a) (eval a))
(define (ttt) (ttt1 (args)))
(ttt)
> ()
(ttt 1)
> ()

;The workaround:
(define (ttt) (let (x (args)) (ttt1 x))
(ttt 1)
> (1)
WBR, Dmi