www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - alias this

reply "Namespace" <rswhite4 googlemail.com> writes:
I thougth that in dmd 2.063 alias this : foo; would be allowed.
That was what the preview of dmd 2.063 said:
http://dlang.org/changelog.html#new2_062
Why wasn't it implemented?
May 31 2013
next sibling parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
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
May 31 2013
parent "Namespace" <rswhite4 googlemail.com> writes:
No, I meant the colon.
alias this : foo;
May 31 2013
prev sibling parent "Simen Kjaeraas" <simen.kjaras gmail.com> writes:
On 2013-05-31, 14:12, Namespace wrote:

 I thougth that in dmd 2.063 alias this : foo; would be allowed.
 That was what the preview of dmd 2.063 said:
 http://dlang.org/changelog.html#new2_062
 Why wasn't it implemented?
Probably not enough time. I've not read anything about it no longer being planned. -- Simen
May 31 2013