| 2 | |
| 3 | {{{ |
| 4 | The code below works in CCL, CLISP and SBCL, but not in ABCL. |
| 5 | |
| 6 | $ echo '(cl:format cl:t "~&I am in package ~s.~%" cl:*package*)' > foo.lisp |
| 7 | $ java -jar abcl-1.7.1.jar |
| 8 | Armed Bear Common Lisp 1.7.1 |
| 9 | Java 1.8.0_265 Oracle Corporation |
| 10 | OpenJDK 64-Bit Server VM |
| 11 | Low-level initialization completed in 0.236 seconds. |
| 12 | Startup completed in 0.931 seconds. |
| 13 | Type ":help" for a list of available commands. |
| 14 | CL-USER(1): (defpackage "BAR" (:use)) |
| 15 | #<PACKAGE BAR> |
| 16 | CL-USER(2): (let ((*package* (find-package "BAR"))) (load (compile-file "foo"))) |
| 17 | ; Compiling /tmp/foo/abcl-bin-1.7.1/foo.lisp ... |
| 18 | ; (COMMON-LISP:FORMAT COMMON-LISP:T ...) |
| 19 | ; Wrote /tmp/foo/abcl-bin-1.7.1/foo.abcl (0.036 seconds) |
| 20 | Error loading /tmp/foo/abcl-bin-1.7.1/foo.abcl at line 4 (offset 125) |
| 21 | #<THREAD "interpreter" {1B31C40C}>: Debugger invoked on condition of type UNDEFINED-FUNCTION |
| 22 | The function BAR::SETQ is undefined. |
| 23 | Restarts: |
| 24 | 0: CONTINUE Try again. |
| 25 | 1: USE-VALUE Specify a function to call instead. |
| 26 | 2: RETURN-VALUE Return one or more values from the call to SETQ. |
| 27 | 3: TOP-LEVEL Return to top level. |
| 28 | [1] BAR(3): |
| 29 | |
| 30 | }}} |