[gambit-list] Making gsc more strict
Marc Feeley
feeley at iro.umontreal.ca
Mon Dec 7 14:45:28 EST 2015
Ah! Indeed, this should be fixed in the universal backend.
Marc
> On Dec 7, 2015, at 2:36 PM, ben yakawp <ben.lists at yakawp.com> wrote:
>
> you're right, thanks.
>
> there is a little problem though. The linking error only show up if I
> run gsc without '-target'. But without '-target' the
> '##inline-host-statement' is not defined and also generates a warning.
>
>
>
> On Mon, Dec 7, 2015, at 06:02 PM, Marc Feeley wrote:
>> 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
>>
> _______________________________________________
> 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