alias two froms

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 11 16:05:18 PDT 2014


On 09/11/2014 12:08 PM, eles wrote:
> See this:
>
> http://forum.dlang.org/post/kfdkkwikrfvaukhctrmq@forum.dlang.org
>
> "alias" supports two syntaxes, one of them specifically to address
> writing things like alias A this.
>
> That's inconsistent. I agree not the most urgent thing in the world, but
> while the fixing things happens (see the @property), why not address
> this too?
>
> So? Deprecate the old syntax?

The 'alias this = A' syntax did appear for one release as an 
unintentional feature:

 
http://forum.dlang.org/thread/aaflopktcjmljxdnoizj@forum.dlang.org#post-aaflopktcjmljxdnoizj:40forum.dlang.org

Ali



More information about the Digitalmars-d mailing list