What would be the consequence of implementing interfaces as fat pointers ?
Benjamin Thaut
code at benjamin-thaut.de
Sun Mar 30 05:15:14 PDT 2014
Am 30.03.2014 01:57, schrieb deadalnix:
> 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 ?
As a nice side effect, debuggers could directly use the object pointer
inside the fat interface pointer and don't have to reimplement D's
casting routines.
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list