On 9/8/2013 6:03 AM, "Øivind" wrote:
That throws safety out the window for one. If you want safety and
no new language features, this should work:

  a[base..$][0..width]

Thanks

Still a little verbose, but at least you don't have to type the same things 
twice.

I guess the double slice will be optimized into a single one at least for
release mode, so there should be no performance degredation?


Try it and see. If it isn't, feel free to file an enhancement request for the optimizer!

Reply via email to