D Logo and Slogan

Dicebot public at dicebot.lv
Sun Feb 2 02:37:49 PST 2014


On Sunday, 2 February 2014 at 03:23:22 UTC, Mike wrote:
> So let me get this straight:
> alias {type} this;               // only if using 'this'
> alias {newType} = {existingType} // all others

Yes, but:

1) not {newType} but {newSymbol} - alias does not create new types
2) alias {existingSymbol} {newSymbol} is also legal and not 
planned for deprecation so far

> So, does the language reference here 
> (http://dlang.org/declaration.html#alias) need updating?

Yes, looks like those don't mention new syntax.

> And do the aliases in object.di here 
> (https://github.com/D-Programming-Language/druntime/blob/master/src/object.di) 
> also need updating?

Not necessarily, old syntax is still legal. But in context of 
consistent style - yes, makes sense.


More information about the Digitalmars-d mailing list