Pop Quiz what is wrong with this code?
rikki cattermole
rikki at cattermole.co.nz
Sat Jun 20 15:14:06 UTC 2020
On 21/06/2020 3:08 AM, Danni Coy wrote:
> ...
> foreach (y, ref row; offsetMap)
> {
> auto run = 0;
> auto nPixels = 0;
> foreach (x; 0..size.x)
> {
> immutable SDL_FPair offset = { center.x - x, y - center.y };
> ...
>
> and why does it violate the principle of making the right thing the
> easy thing to do?
>
oo oo, is it that you didn't want x and y to be of type size_t?
And why are you initializing run and nPixels manually?
More information about the Digitalmars-d
mailing list