Re: let binding with c

[email protected]
Newsgroups gmane.lisp.scheme.bigloo
Organization Inria
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.