Eric:
Suppose I have some memory allocated on the heap, and I havetwo pointers pointing to the beginning and end of a contiguous segmentof that memory. Is there a way I can convert those two pointersto an array slice without actually copying anything within the segment?
Use something like this (but make sure the length is correct): auto mySlice = ptr1[0 .. ptr2 - ptr1]; Bye, bearophile