What happened to the alias this = identifier syntax in 2.062?

Marco Leise Marco.Leise at gmx.de
Fri Feb 22 10:30:02 PST 2013


Am Fri, 22 Feb 2013 09:38:48 -0800
schrieb Ali Çehreli <acehreli at yahoo.com>:

> I appreciate everybody's contributions to D but that is not an 
> intention, that is a change to dmd that caused a regression. A syntax 
> that used to work in the previous version simply stopped working in 
> 2.062. That is the definition of a regression. Normally, regressions are 
> fixed as quickly as possible.
> 
> I have a feeling that there must have been some newsgroup discussions as 
> well but unfortunately I must have been busy with other things at the 
> time. Not all of us read github.
> 
> Ali

No, this was not meant to be a feature. It slipped in and
people started using it. It's like being able to break "scope"
parameters by storing aliases to what's inside of them. If you
rely on that now and it is fixed in a future version, it's not
a regression.
That said I started using "alias this = ..." as well and was
surprised it was removed, but noticed it in time as a DFeed
line on IRC.

-- 
Marco



More information about the Digitalmars-d mailing list