FFI syntax (was: Re: [Vm-dev] Re: testing MT and reentrant)

Lukas Renggli renggli at gmail.com
Thu Mar 24 20:50:48 UTC 2011


>> >> Isn't it the best time to migrate the syntax of FFI calls to Pragmas? I
>> >> know it takes some time to implement the pragma support, but IIRC Lukas did
>> >> that a few years ago, so dusting it off and adding support for threaded
>> >> calls (which I didn't see yet) shouldn't be that hard.
>> >
>> > SPunds good.  Got any URLs?  Lukas, got any code?
>>
>> Sorry, I don't have that code anymore. I used the existing FFI parser
>> code within a string literal in the pragma.
>
> So what do you think of the literal array hack.  And remember, this is
> for posterity so be honest.

I don't like it to have methods polluted with meaningless symbols
(that will also show up in senders/implementors).

I doubt that the symbol hack will make parsing much simpler, because
you still need to analyze the token sequence.

Lukas

-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the Vm-dev mailing list