alias this

Ali Çehreli acehreli at yahoo.com
Fri May 31 09:13:47 PDT 2013


On 05/31/2013 05:12 AM, Namespace wrote:

 > I thougth that in dmd 2.063 alias this : foo; would be allowed.

You mean the equal sign?

     alias this = foo;

That was implemented in 2.061 by accident likely due to a confusion 
whether the new alias syntax should apply to 'alias this' as well.

 > That was what the preview of dmd 2.063 said:
 > http://dlang.org/changelog.html#new2_062
 > Why wasn't it implemented?

You will notice that it is about removing the "alias foo = int" syntax 
in 2.062 (not related to 2.063). (That page contains the changes about 
more than one version.)

Ali



More information about the Digitalmars-d-learn mailing list