Low-overhead components

Kagamin spam at here.lot
Sun Jul 28 11:51:13 PDT 2013


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);
}


More information about the Digitalmars-d mailing list