[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] tinyclos value matching?
From: |
Alex Shinn |
Subject: |
Re: [Chicken-users] tinyclos value matching? |
Date: |
Fri, 17 Mar 2006 01:11:46 -0600 |
User-agent: |
Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Fri, 17 Mar 2006 08:04:45 +0100, felix winkelmann wrote:
>
> On 3/17/06, Alex Shinn <address@hidden> wrote:
> >
> > Unfortunately Chicken currently segfaults when you MAKE an inherited
> > instance of <generic>:
> >
> > $ csi -q
> > #;1> (define x (make-class (list <generic>) (list)))
> > #;2> (make x)
> > $
> >
>
> May it be possible that you have to use <entity-class> as your
> metaclass, i.e.?
>
> (define-class <my-generic> (<generic>) () <entity-class>)
Ah, that does the trick, thanks Felix!
Just replace
(define <value-generic> <generic>)
with
(define-class <value-generic> (<generic>) () <entity-class>)
and it works without slowing down other generics.
--
Alex
- [Chicken-users] tinyclos value matching?, Topher Cyll, 2006/03/15
- Re: [Chicken-users] tinyclos value matching?, felix winkelmann, 2006/03/16
- Re: [Chicken-users] tinyclos value matching?, Alex Shinn, 2006/03/16
- [Chicken-users] state of tinyclos ?, Rick Taube, 2006/03/20
- Re: [Chicken-users] state of tinyclos ?, felix winkelmann, 2006/03/21
- Re: [Chicken-users] state of tinyclos ?, Alex Shinn, 2006/03/24
- Re: [Chicken-users] state of tinyclos ?, Alex Shinn, 2006/03/27