Hi Damien,

> something i do not understand with bigloo and java front-end and that causes 
> crash is when i use this macro:
> 
>  ;; macros or function to display a variable with a message and add a newline
> (define-syntax display-msg-symb-nl 
>   (syntax-rules ()
>     ((_ msg symbl)   (begin
>                      (display msg)
>                      (display " ")
>                      (display (symbol->string (quote symbl)))
>                      (display " = ")
>                      (display symbl)
>                      (newline)))))
> 
> called like that:
> (display-msg-symb-nl  "BiglooCode.scm :: ResultatMesuresF ::" objetexiste )
> 
> it seems symbol->string make the crash but i had no time to test it, so i let 
> the problem and i use a simpler macro.
> 
> The macro works with others schemes implementation and perheaps with the C 
> front-end.
Hard to tell without a concrete example. Using the -expand option might help
undestand what's wrong. In that particular case, the (display symbl) is
incorrect as it misses a quote.

-- 
Manuel

Reply via email to