chicken-users
[Top][All Lists]
Advanced

[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




reply via email to

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