What would be the consequence of implementing interfaces as fat pointers ?

Walter Bright newshound2 at digitalmars.com
Sat Mar 29 18:04:39 PDT 2014


On 3/29/2014 5:57 PM, deadalnix wrote:
> All is in the title.
>
> This is becoming increasingly the norm in new languages. It is much better in
> term of performances (it avoid cascaded loads to call methods, which can be
> really costly on modern CPUs), make object themselves smaller.
>
> Would implementing them that way break D code ? What would be the extent of the
> breakage ?

D already has phat pointers - that's what delegates are. I'm curious how the 
scheme you propose is different?


More information about the Digitalmars-d mailing list