[gambit-list] macro-expand

Joel Borggrén-Franck joel.borggren.franck at gmail.com
Mon Mar 10 10:03:03 EDT 2008


On Sun, Mar 9, 2008 at 12:10 AM, Christian Jaeger
<christian at pflanze.mine.nu> wrote:
> Joel Borggrén-Franck wrote:
>  > Is there a way to read from pp without
>  > creating a port first?
>  >
>
>   > (##decompile (lambda (y) (* y y)))
>  (lambda (y) (* y y))
>   > (caddr (##decompile (lambda (y) (* y y))))
>  (* y y)
>

Neat. But since ##decompile segfaults on me I think I'll stick to my
macro-expand.
jbf at deep:~$ gsi
Gambit v4.2.2

> (macro-expand (car '(a b)))
(car '(a b))
> (##decompile (car '(a b)))
Segmentation fault (core dumped)
jbf at deep:~$

I'll look in to this and make a bugzilla report RSN.

>  BTW be careful: macros using (begin ..) to output multiple forms will
>  not give what you want since the current interpreter strips the begin
>  during parsing time:
>

Thx for the heads up.



More information about the Gambit-list mailing list