DMD svn and contract inheritance

Kagamin spam at here.lot
Mon Oct 5 06:53:01 PDT 2009


Walter Bright Wrote:

> It's outlined in the code comments, but it's implemented by making the 
> contract code a nested function. The overriding function calls those 
> nested functions of the overridden function(s). In order for this to 
> work successfully, the 'this' pointer and the stack parameters must wind 
> up in the same relative position on the stack.

'this' pointer could be passed as a regular argument just like stack pointer.


More information about the Digitalmars-d-announce mailing list