[parenscript-devel] &whole behaves differently in PS

Vladimir Sedach vsedach at gmail.com
Sun Sep 23 06:10:00 UTC 2007


Alright, support for &whole arguments in PS macro lambda lists is now
in the darcs repository.

Happy hacking,
Vladimir

On 9/13/07, Daniel Gackle <danielgackle at gmail.com> wrote:
> I'm writing some unit tests for PS functions and want to be able to report
> the test expressions that fail. &whole is perfect for this. But it doesn't
> quite behave as expected.
>
> In Lisp:
>
>   (defmacro lisp-blah (x y &whole w) w)
>   (macroexpand-1 '(lisp-blah 10 20)) => (LISP-BLAH 10 20)
>
> In Parenscript:
>
>   (defpsmacro ps-blah (x y &whole w) w)
>   (ps::ps-macroexpand '(ps-blah 10 20)) => (10 20)
>
> Also, if you do this:
>
>   (defmacro/ps blah (x y &whole w) w)
>
>  then the following expression hangs:
>
>   (ps::ps-macroexpand '(blah10 20))
>
> Daniel
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>



More information about the parenscript-devel mailing list