[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Adding a free slot to Chicken symbols
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Adding a free slot to Chicken symbols |
Date: |
Mon, 10 Apr 2006 14:00:38 +0200 |
One more thing: make sure to recompile every *.scm after building
chicken once. The compiler uses the size of symbols to estimate
the nursery space...
cheers,
felix
On 4/10/06, felix winkelmann <address@hidden> wrote:
> On 4/1/06, John Cowan <address@hidden> wrote:
> > This is a feature request for Chicken. It's hopefully very simple to
> > implement, and it will be extremely useful for me, but it's a fairly deep
> > change to the system, and it will have impact on people who don't use it.
> >
> > I'd like to have an extra slot provided with each symbol that can contain
> > any Chicken object. Two primitive procedures (I propose symbol-slot
> > and symbol-slot-set!) will provide read and write access to the slot.
> > This will be very useful for implementing true property lists in my Lisp
> > 1.5 emulator and for other purposes in my Joy interpreter.
> >
>
> Attached is a patch that _appears_ to work. It's against the current darcs
> HEAD and will definitely break when loading extensions or interfacing
> with code compiled with a different chicken.
> Adding an extra slot to symbols would be pretty handy, and would make
> it easy to implement different Lisps in chicken, but I wonder how much code
> depends on C_SIZEOF_SYMBOL being 3....
>
> Anyway, give the patch a try, please.
>
>
> cheers,
> felix
>
>
>
- [Chicken-users] Adding a free slot to Chicken symbols, John Cowan, 2006/04/01
- Re: [Chicken-users] Adding a free slot to Chicken symbols, felix winkelmann, 2006/04/11
- Re: [Chicken-users] Adding a free slot to Chicken symbols, John Cowan, 2006/04/11
- Re: [Chicken-users] Adding a free slot to Chicken symbols, felix winkelmann, 2006/04/11
- Re: [Chicken-users] Adding a free slot to Chicken symbols, John Cowan, 2006/04/11
- Re: [Chicken-users] Adding a free slot to Chicken symbols, felix winkelmann, 2006/04/11