change 'this' pointer for structs to reference type

Walter Bright newshound1 at digitalmars.com
Sun Nov 2 11:28:40 PST 2008


Denis Koroskin wrote:
> Will the following code:
> typeof(this) foo = new typeof(this);
> 
> work as expected?

No, because new will still return a typeof(this)*.



More information about the Digitalmars-d mailing list