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

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



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 --