[phobos] phobos commit, revision 2018

Andrei Alexandrescu andrei at erdani.com
Fri Sep 17 14:55:05 PDT 2010


Yes yes yes! I am so happy bug 2800 was fixed. This is a huge step 
towards legitimizing Tuple. I cringed whenever I had to write t.field[0] 
instead of the natural t[0].

BTW: a large part of the motivation for "alias this" was allowing this 
very idiom. True story!


Andrei

On 09/17/2010 04:40 PM, dsource.org wrote:
> phobos commit, revision 2018
>
>
> user: rsinfu
>
> msg:
> std.typecons: Several improvements to Tuple.
>
> - Tuple members are now accessible with the syntax a[0], a[1] etc.
> - Eliminated an internal union (see bug 4421 and 4846). Re-implemented named members with alias.
> - Worked around bug 4424. Got opAssign back.
> - Made Tuple.slice!(from, to) to preserve field names if any.
> - Added isTuple!(T) template.
> - Removed the 'default constructor' that is never called.
> - Changed Tuple.toString() to use formattedWrite() instead of the `static if (is(to!string...))` thingy.
>
> http://www.dsource.org/projects/phobos/changeset/2018
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos


More information about the phobos mailing list