This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Making Guile slower


On Thu, 23 Dec 1999, Charbel JACQUIN wrote:

> > Wouldn't it be a solution, then, to abstract away this idiom, e.g. as
> > a macro, so that we both gain readability, safer code, and get the
> > freedom still to choose an efficient from of the NEWCELL operation
> > itself?
> 
> In cvs there is already SCM_NEWSMOB(foo, scm_tc16_foo, m)
> and SCM_RETURN_NEWSMOB(scm_tc16_foo, m) for this purpose.

I'm definitely for a macro abstraction, but I doubt that SCM_NEWSMOB
should be used, since this would mean mixing different concepts.  The best
solution would be if SCM_NEWCELL would have taken three parameters from
the beginning.

Dirk Herrmann


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]