X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=test.lisp;h=6d386cba2fc0c295d3d51baf5000a0c094bedce7;hb=2af650b83b1449de72dc7b8209cb2310cdea0509;hp=4b6e015df4eec0ed6b5f4d1c2c5ff2e4bd374e53;hpb=be0e560b524c25392d87b2226571052adf3fd5ae;p=jscl.git diff --git a/test.lisp b/test.lisp index 4b6e015..6d386cb 100644 --- a/test.lisp +++ b/test.lisp @@ -1,5 +1,4 @@ -(lambda (x y) - x) +(lambda (x y) x) (debug "hola") (debug '(1 2 3 4)) @@ -20,6 +19,10 @@ (fsetq f (lambda (x) (+ x 10))) (debug (f 20)) +(debug ((lambda (x) x) 9999)) + +(debug #'f) + ;;; Macros (debug "---MACROS---") @@ -45,16 +48,34 @@ (debug (car (cons 1 2))) (debug (cdr (cons 1 2))) +(setq x '(1 . 2)) +(debug x) +(debug (eq x x)) +(debug (eq '(1 . 2) '(1 . 2))) + ;;; Symbols (debug (symbol-name 'foo)) (debug (symbol-name 'foo-bar)) +(debug (progn 1 2 3 123)) + +(debug (let ((x 99999)) + (incf x))) + ;;; &rest lambda-list (debug (lambda (&rest x) x)) (debug (lambda (x y &rest z) z)) (debug (lambda (x y &rest z) x)) + +(progn + (eval-when-compile + (%compile-defun 'f)) + (fsetq f (lambda (x) (* x x)))) + +(debug (f 33)) + ;; (debug (foo)) ;; (eval-when-compile