[gambit-list] Making gsc more strict
feeley at iro.umontreal.ca
Mon Dec 7 14:45:28 EST 2015
Ah! Indeed, this should be fixed in the universal backend.
> 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.
>>> On Dec 7, 2015, at 11:18 AM, ben yakawp <ben.lists at yakawp.com> wrote:
>>> 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
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
More information about the Gambit-list