projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
join-trailing and *newline*
[jscl.git]
/
test.lisp
diff --git
a/test.lisp
b/test.lisp
index
4b6e015
..
6d386cb
100644
(file)
--- 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))
(debug "hola")
(debug '(1 2 3 4))
@@
-20,6
+19,10
@@
(fsetq f (lambda (x) (+ x 10)))
(debug (f 20))
(fsetq f (lambda (x) (+ x 10)))
(debug (f 20))
+(debug ((lambda (x) x) 9999))
+
+(debug #'f)
+
;;; Macros
(debug "---MACROS---")
;;; Macros
(debug "---MACROS---")
@@
-45,16
+48,34
@@
(debug (car (cons 1 2)))
(debug (cdr (cons 1 2)))
(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))
;;; 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))
;;; &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
;; (debug (foo))
;; (eval-when-compile