Re: goops proposal: proper struct classes

2011-11-22 Thread Andy Wingo
Hi, Just some more details here, to get this off the back of my queue: On Sun 01 May 2011 22:19, Andy Wingo writes: > If you know GOOPS, then you know that we have classes, rooted at > . And indeed shows up a lot in documentation and in > code. But that's not how it is in CLOS: our correspo

Re: goops proposal: proper struct classes

2011-05-05 Thread Andy Wingo
On Thu 05 May 2011 22:19, l...@gnu.org (Ludovic Courtès) writes: >> Vtables *are* classes, on a fundamental level. Bare vtables are not as >> nice as , but they do describe instances. SCM_CLASS_OF() is >> SCM_STRUCT_VTABLE(). > > OK, it would be more elegant. > > Can it be achieved without GOOPs

Re: goops proposal: proper struct classes

2011-05-05 Thread Ludovic Courtès
Hey! Andy Wingo writes: > Here's the problem, for me: > > scheme@(guile-user)> (define-record-type (make-foo x) foo? (x > foo-x)) > scheme@(guile-user)> (make-foo 10) > $1 = #< x: 10> > scheme@(guile-user)> (struct-vtable $1) > $2 = # > scheme@(guile-user)> (struct-vta

Re: goops proposal: proper struct classes

2011-05-05 Thread Andy Wingo
Hi :) On Thu 05 May 2011 18:35, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo writes: > >> If you know GOOPS, then you know that we have classes, rooted at >> . And indeed shows up a lot in documentation and in >> code. But that's not how it is in CLOS: our corresponds to >> their `sta

Re: goops proposal: proper struct classes

2011-05-05 Thread Ludovic Courtès
Hi Andy, Andy Wingo writes: > If you know GOOPS, then you know that we have classes, rooted at > . And indeed shows up a lot in documentation and in > code. But that's not how it is in CLOS: our corresponds to > their `standard-class'. They have a superclass, called `class', which > is the

goops proposal: proper struct classes

2011-05-01 Thread Andy Wingo
Hello all, If you know GOOPS, then you know that we have classes, rooted at . And indeed shows up a lot in documentation and in code. But that's not how it is in CLOS: our corresponds to their `standard-class'. They have a superclass, called `class', which is the real root, and from which e.g