D Logo and Slogan

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Sat Feb 1 16:21:36 PST 2014


On Saturday, 1 February 2014 at 18:44:42 UTC, Dicebot wrote:
> On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips 
> wrote:
>> alias this = foo;
>>
>> This is new syntax, has some edge cases which fail and 
>> intended to replace the old typedef style
>>
>> alias Type NewName;
>>
>> Such that it look more like variable assignment:
>>
>> alias NewName = Type;
>
> This syntax was intended to only be used for normal aliases, 
> not "alias this", and was supposed to be removed for latter.

Pretty sure "alias this" was actually a driving force. E.g

"You should use alias this?"

"How, I added alias this and it didn't compile?"

"The syntax 'alias TheThingToAlias this'"

"So not 'alias this' then."


More information about the Digitalmars-d mailing list