VTable/open resusable object model

BLS nanali at nospam-wanadoo.fr
Wed Jul 18 10:53:23 PDT 2007


BLS schrieb:
> Robert Fraser schrieb:
>  > BLS Wrote:
>  >
>  >> An Object model that can be customized
>  >> to support powerful features such as multiple inheritance and
>  >> mixed-mode execution (native code/ byte code).
>  >
>  > Really working on those complete sentences there?
> 
> Yes, A smalltalk derivat is allready implemented based on this object 
> model, which is, compared to Cpp, approximate /only/ 20 percent slower.
> 
>  >
>  > But, sure, it's not a bad idea (though, IMO, multiple inheritance 
> _is_). But it seems like it'd be a lot of work at this stage for Walter, 
> and I certainly don't think it should become part of the spec.
> 
> Instead of multiple inheritance implementing *traits* is also possible :
> 
> quote :
> Traits are a powerful software composition mechanism. A trait
> is a collection of methods without state that can be manipulated and
> combined with other traits according to an algebra of composition,
> aliasing and exclusion. They are interesting because they provide
> the power of multiple inheritance without the drawbacks and complexity
> of multi inheritance ....
> end quote
> 
> 
> Bjoern

For a better understanding have a look at 
http://vpri.org/pdf/colas_wp_RN-2006-001-a.pdf

See graphic at page 5 and than  page 23

More at :
http://vpri.org/html/writings.htm
Chapter *Fundamental New Computer Technologies*

Okay that is more than enough <g>



More information about the Digitalmars-d mailing list