Article on Tuples
Bill Baxter
wbaxter at gmail.com
Wed Nov 15 04:53:11 PST 2006
Walter Bright wrote:
> http://www.digitalmars.com/d/tuple.html
Seeing this:
alias Tuple!(TP, 8) TR; // TR is now float,float,3,8
alias Tuple!(TP, TP) TS; // TS is float,float,3,float,float,3
makes me really wish the syntax for typedef/alias were:
alias newname = oldname;
I always thought the ordering for C++'s typedef was goofy. I get it
backwards about half the time I think, just because it's basically an
assignment perversely written the other way around from all other
assignments.
--bb
More information about the Digitalmars-d-announce
mailing list