[parenscript-devel] problem with package usage

Canhua dreameration at gmail.com
Tue Mar 20 05:45:45 UTC 2012


hi, I got the cause. It is due to the lack of `:use` :cl package.

So I have to always to (:use :cl :parenscript)



On Tue, Mar 20, 2012 at 1:33 PM, Canhua <dreameration at gmail.com> wrote:
> hi, I find that when compiling a file with the following contents using
> `ps-compile-to-file` yields a result wherein `/=` and `funcall` are not
> properly compiled.
>
> If I remove the packaging codes, the compiling is correct.
>
> Best wishes.
>
>>>>> source file contents
>
> (lisp (defpackage test-aa
>        (:use :parenscript)))
> (in-package :test-aa)
>
> (defun f0 (fn x)
>  (when (/= x 0)
>    (funcall fn x)))
>
> <<<<
>
>>>>> compiling result
>
> "function f0(fn, x) {
>    return slashequals(x, 0) ? funcall(fn, x) : null;
> };
> <<<<




More information about the parenscript-devel mailing list