On 7/31/13, bearophile <[email protected]> wrote: > Those four variables x y z w influence the type of the foreach, > while 4 is a run-time argument. This API can be used: > > foreach (x, y, z, w; arr.chunks!4)
Yeah it will have to be CT. > A forward range like that seems easy to implement. Can it? I've tried alternatively with opApply but it's problematic to support both ref/non-ref argument versions. I know there's been some sort of automatic unpacking feature recently introduced (in 2.063 maybe?). Got an idea how you'd implement this range?
