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

Re: Problem with <each-subclass-slot-info>



FYI,

I am just implementing each-subclass slots for GD.

Expect results in a week or so.

    Gabor

----------
>From: Martin Kaeske <Martin.Kaeske@II.Stud.TU-Ilmenau.de>
>To: info-dylan@ai.mit.edu
>Subject: Re: Problem with <each-subclass-slot-info>
>Date: Sam, 23. Mär 2002 14:15 Uhr
>

> Martin Kaeske <Martin.Kaeske@ii.stud.tu-ilmenau.de> wrote:
>>> Untested, but you hopefully get the idea.
>> I see. I think this would work.
>
> No, it wouldn't. :(
> Since abcd-setter stores its value on a per-instance basis
> "abcd[c] := v", but AFAIK each-subclass means that every instance
> of a given class, shares one value.
>
> I think
>   define method abcd-setter(v :: <object>, c :: <one>) => (o :: <object>)
>     $abcd[object-class(c)] := v;
>   end method;
> can do the trick.
> One only has to provide getter-/setter-methods for each class.
>
> Martin
>
> --
> The instructions said to use Windows 98 or better, so I installed FreeBSD.
>
>   -- Jim Levie in comp.unix.bsd.freebsd.misc --