[gambit-list] Making gsc more strict

Marc Feeley feeley at iro.umontreal.ca
Mon Dec 7 12:02:03 EST 2015


What is wrong with that code?

Do you mean that “graaaaa” is an undefined variable?  That’s only known when the program is linked, possibly dynamically at run time.  Gambit will give a warning at link time.

Marc

> On Dec 7, 2015, at 11:18 AM, ben yakawp <ben.lists at yakawp.com> wrote:
> 
> hi
> Is there a way of making the compilation or at least the
> inline-host-statement more strict, so that typing errors in this case
> could be caught by the compiler.
> 
> (define (ffiprint arg)                                                  
>         (##inline-host-statement "print(@1@);\n" graaaaaa ))
> 
> gsc seems to be ok with this
> 
> regards ben
> 
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list




More information about the Gambit-list mailing list