ubyte[256] data; foreach(ubyte i; 0..256) { ubyte x = data[i]; }Yes. Much better. What's the rewrite in this case? Using a size_t internally and casting to ubyte?
I was just wondering
Andrea Fontana via Digitalmars-d Thu, 06 Jul 2017 03:06:13 -0700
ubyte[256] data; foreach(ubyte i; 0..256) { ubyte x = data[i]; }Yes. Much better. What's the rewrite in this case? Using a size_t internally and casting to ubyte?
I was just wondering