minimal object.d implementation that allows classes

Jean-Louis Leroy jl at leroy.nyc
Fri Dec 8 15:00:55 UTC 2017


On Friday, 8 December 2017 at 14:59:12 UTC, Jacob Carlborg wrote:
> On 2017-12-07 16:09, Jean-Louis Leroy wrote:
>
>> This experiment is related to an ongoing discussion with 
>> Walter, Andrei and Ali on extending D with general mechanisms 
>> to better support libraries like openmethods. I will post in 
>> Studies soon.
>
> Modifying the vtable can be useful for mocking and stubbing 
> methods as well.

Indeed. The initial vtable is in read only memory, but the 
re-allocated one is writeable.


More information about the Digitalmars-d mailing list