guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: single or double cell?


From: Keisuke Nishida
Subject: Re: single or double cell?
Date: Sat, 03 Feb 2001 02:12:34 -0500
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

At 02 Feb 2001 12:30:14 +0200,
Michael Livshin wrote:
> 
> Dirk Herrmann <address@hidden> writes:
> 
> > [...]
> > what I rather meant is whether it makes sense to use this
> > knowledge outside of the gc and the corresponding types.  In the last year
> > or so, a lot of work has been put into guile in order to break up
> > dependencies between parts of guile, for example the dependency between
> > the gc and the type system.  Thus, I am very skeptical towards approaches
> > that introduce such couplings.
> 
> while you are absolutely right in general, I'd argue that in this
> particular case (binary dumping/undumping) the closer-than-comfortable
> relation with the allocator is basically inevitable.
> 
> perhaps some more-low-level-but-still-public interface to the
> allocator could be defined to allow some kind of reflection over
> object representation.  which reminds me that I even worked on
> something related a year ago.  hmm.

I have decided to do dumping/undumping without using that knowledge,
but instead, let smobs be allocated by themselves.  Still, my code
is very dependent on the internal representation of objects, though.

By the way, I found a macro SCM_DOUBLE_CELLP in tags.h.  I'm not sure
how it works.

Kei



reply via email to

[Prev in Thread] Current Thread [Next in Thread]