alias A = B; syntax

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Mon Oct 15 20:18:33 PDT 2012


On Tue, 16 Oct 2012 05:00:56 +0200
"stas" <stasoid at yahoo.com> wrote:

> For me syntax alias int Int; seems unnatural.
> I'd love to write
> alias Int = int;
> alias fptr = void(int)*;
> 
> This looks much more readable for me and harmonized with
> int x = 0;
> template T(alias A = Object) {...}
> 
> Does anybody share this opinion?
> Any chance this syntax goes into D someday?

I'm pretty sure it was already decided that this would be added, but
just hasn't made it in yet. I've been fairly eager for it. I find the
current syntax too inconsistent and confusing.



More information about the Digitalmars-d mailing list