On Monday, 23 February 2015 at 22:15:54 UTC, Walter Bright wrote:
  private:
    E[] array;
    size_t start, end;
    int* count;

What is the point of keeping start/end? Aren't those baked into the array slice? Not storing start end means not having to do index arithmetic (minor), reducing struct size (always nice). But more importantly, it allows implicit (and conditional) bounds checking (awesome), which actually runs regardless anyways.

Or did I miss something?

Reply via email to