On Sun, Mar 9, 2008 at 12:10 AM, Christian Jaeger christian@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@deep:~$ gsi Gambit v4.2.2
(macro-expand (car '(a b)))
(car '(a b))
(##decompile (car '(a b)))
Segmentation fault (core dumped) jbf@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.