This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Making Guile slower
- To: Charbel JACQUIN <cjacquin at objetdirect dot com>
- Subject: Re: Making Guile slower
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Thu, 23 Dec 1999 18:28:28 +0100 (MET)
- cc: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>, guile at sourceware dot cygnus dot com
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