[phobos] phobos commit, revision 1968

Andrei Alexandrescu andrei at erdani.com
Sun Jan 2 14:56:30 PST 2011


On 9/10/10 2:48 PM, Philippe Sigaud wrote:
>
>
> On Wed, Sep 8, 2010 at 16:07, David Simcha <dsimcha at gmail.com
> <mailto:dsimcha at gmail.com>> wrote:
>
>       Looks good.  I like that Zip now uses a tuple instead of that ugly
>     oddball Proxy struct,
>
>
> Cool. That's good to know. Proxy didn't play nice with other
> algo/ranges. Zip is much better! Now, we can iterate on n ranges in
> parallel.
>
> I'm looking at .back/popBack and wondering whether the behaviour should
> be different for the three length options. If you stop the iteration at
> the shortest range, back cannot just return the grouped backs from the
> input ranges. It must determine the shortest one and truncate the other
> accordingly.

Zip can determine the shortest range and truncate the rest only if all 
ranges support length and slicing.

Andrei


More information about the phobos mailing list