chunks equivalent with unpacking?

bearophile bearophileHUGS at lycos.com
Wed Jul 31 11:47:11 PDT 2013


Ali Çehreli:

> Fixed magically :) by a line that should have no effect:
>
>     pragma(msg, ElementType!(typeof(arr.tupleChunks!4)));
>
> Of course one must also import ElementType:
>
> import std.range: chunks, Chunks, iota, ElementType;

How nice. Have we just won another bug report?
It is worth fixing a small feature that probably should be 
removed from the language and that I think is not present in D 
documentation?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list