Re: Object Oriented Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 12 Dec 2004, at 12:51, Matt Lewis wrote:

> 
> 
> posted by: Matt Lewis <matthewwalkerlewis at yahoo.com>
> 
> Kat wrote:
> > 
> > Good stuff. Where i differ on everyone i know is in inheritance and
> > descendants. I wish to allow full overloading and multiple inheritances, li=
> > ke:
> > 
> > <not any code in particular>
> > class a = bird
> >   properties = { }
> >   methods ____
> > class b = mammal
> >   properties = { }
> >   methods ___
> > 
> > class platypus ==20
> >    inherit class a
> >    inherit class b -- last inherit has priority
> >    properties = { } -- overload as necessary
> >    methods ____ -- overload as necessary
> > 
> > </code>
> 
> I suppose the multiple inheritance thing would be possible.  It could be 
> done right now (although not automagically) by creating a platypus as
> a class b, and then casting to a where necessary.  I'll think about how
> to implement this further.
> 
> > Also, dynamic changes in methods and any data field while the program is
> > running, with changes (or additions or deletions) propagated thru all
> > descendants instantly.
> 
> I don't think there's any way to do this (unless I start mucking around
> in the back end, which destroys my ability to be compatible via preprocessor
> or
> possible future 2-step binding).  I don't see an example of this above. Could
> you give an example of how you might do this?

1) one fine day in Oz, we don't know of the playtpus
2) the next fine day in Oz, we find it
3) the following day, supervisors are raising heck because the platypus 
cannot exist in the known classifications.
4) a confusing day in Europe, those nuts in Oz came up with a platyus thing, 
and we haveto make a new class for it without rebooting reality.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu