Eric:
Thanks. That really works. I timed doingauto mySlice = ptr1[0 .. ptr2 - ptr1]; 1,000,000 times versus auto mySlice = ptr1[0 .. ptr2 - ptr1].dup; 1,000,000 times and I am quite convinced the data is not being copied.
Take a look at the asm! Bye, bearophile