Suggestion: array slice through arr[base, size]

karl via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 8 07:20:16 PST 2015


Hi, it's a bit unwieldy to write/read this:
result = src[base .. base+size];
instead of:
result = src[base, size];

Maybe such syntax would be a welcome addition to D? I don't see 
it conflicting with the existing grammar, and only the 2 
slicing-operators need further extending to support it.


More information about the Digitalmars-d mailing list