In relation to this thread: http://forum.dlang.org/thread/[email protected]
Where I asked about slicing a pointer, I have another question:
If I have a pointer and iterate over it using a slice, like this:
T* foo = &data;
foreach (element; foo[0 .. length])
{
...
}
Is there any overhead compared with pointer arithmetic in a for
loop?
