FFIPragma experiment

Andreas Raab andreas.raab at gmx.de
Sat Aug 19 20:59:56 UTC 2006


Lukas Renggli wrote:
>> How come? Because the parser currently only picks up primitives if they
>> are registered as pragmas (see pragmaPrimitives). And so, although an
>> FFI call *implies* a primitive this primitive should really never be
>> exposed via pragmas. This is equivalent to "quick" primitives which
>> don't (and shouldn't) show up either.
> 
> I was suggesting to fix that and allow other packages to register
> their own primitives in the compiler. As explained in my initial mail
> this would work perfectly with the Squeak primitives, but not with FFI
> as they have a rather strange syntax.

Let's forget the syntax for a second since it ain't going to change. How 
exactly would that work? Do you intend to make #primitive: work properly 
or something else? My main reason for asking is that I tried to use 
"self primitive: 120" in the FFI declaration but it didn't work.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list