newLISP Fan Club

Forum => newLISP newS => Topic started by: Dmi on May 29, 2007, 03:06:37 AM

Title: couriose with args
Post by: Dmi on May 29, 2007, 03:06:37 AM
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)