alias A = B; syntax

Tommi tommitissari at hotmail.com
Tue Oct 16 07:45:40 PDT 2012


On Tuesday, 16 October 2012 at 03:00:57 UTC, stas wrote:
> For me syntax alias int Int; seems unnatural.
> I'd love to write
> alias Int = int;
> alias fptr = void(int)*;

You can cast your vote for the new syntax over there:
http://d.puremagic.com/issues/show_bug.cgi?id=3011


By the way, in C++11 you can now also say:

using MyRealType = double;

...instead of:

typedef double MyRealType;



More information about the Digitalmars-d mailing list