Low-overhead components
Vladimir Panteleev
vladimir at thecybershadow.net
Sun Jul 28 14:39:12 PDT 2013
On Sunday, 28 July 2013 at 18:51:15 UTC, Kagamin wrote:
> BTW, there's no fast way to boundcheck two-ptr range. It should
> work similar to opSlice:
>
> T opIndex(size_t index)
> {
> static if (CHECKED)
> assert(index < end-ptr);
> return *(ptr + index);
> }
That's a bug, thanks. But non-release-build performance is not a
concern for FastArrayRange anyway.
More information about the Digitalmars-d
mailing list