Automatic Generation of Glue for Named Primitives
Marcel Weiher
marcel at system.de
Tue Sep 14 10:07:17 UTC 1999
> It may be true true that the inline-spec somewhat clutters a
method, but
> it has the advantage that all data is stored in only one place.
I'd find
> it rather distracting if I changed a primitive method and then had to
> remember to go to another method to change the spec, too.
True enough for code that is only ever intended to go into
primitives. What I am thinking about is code that normally executes
as Smalltalk, but can optionally be made into a primitive.
Therefore, the Smalltalk code needs to be uncluttered (or the
compiler has to remove primitive-support message sends), otherwise
there is a strange message send whenever the plain Smalltalk code is
executed.
I think it should be possible to accomodate both styles.
Marcel
More information about the Squeak-dev
mailing list
|