Visual D 0.3.36 released - support for Alex Bothe's semantic analysis, LDC and profiling

Ali Çehreli acehreli at yahoo.com
Thu May 16 09:58:25 PDT 2013


On 05/16/2013 03:08 AM, Bruno Medeiros wrote:

 > On 14/05/2013 06:45, TommiT wrote:

 >> Notice that "alias this = id" is not supposed to be valid syntax.
 >
 > Huh, what's this about? DMD does not seem to recognize it, but it's
 > listed in the grammar. Is it an upcoming feature or is the grammar out
 > of date?

When the other use of alias has been changed from

   alias int NewName;  // weird syntax

to

   alias NewName = int;  // welcome syntax

'alias this' has also been inadvertently changed from

   alias memberFunc this;    // still valid syntax

to

   alias this = memberFunc;  // buggy syntax

It has been a recent bug which has quickly been reverted. Here is a past 
discussion:

   http://forum.dlang.org/thread/aaflopktcjmljxdnoizj@forum.dlang.org

Ali



More information about the Digitalmars-d-announce mailing list