[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Sep 15 20:36:36 1994 
Subject:Re: flavour-question 
From:Tom Khabaza 
Volume-ID:940915.04 

Hi Monika,
The simple answer is that each subflavour needs to have setmember
explicitly as a metaflavour - so you would say:

    flavour city_person a setmember isa person;
        ...

and then it will work as you expect.

Here is why:  the metaflavour of the flavour foo is the flavour of which
foo is an instance.  This relationship (metaflavour->flavour =
flavour->instance) is not inheritiable; it is quite different from
inheritable relationships like ivars->flavour and method->flavour.

Sorry about that.  If I had time to wrap my mind round it I might be
able to think of a way of making sub-flavours inherit a metaflavour (by
modifying the metaflavour's metaflavour??), so if you don't like the
above answer let me know and I'll think again, only more slowly this
time.  Alternatively, if anyone knows that it's impossible, please tell
me!

Btw. I'm glad you think it's elegant.  I was quite pleased with it at
the time.
Cheers,
tom