Local shoot in the foot

8, Apr, 2019

Everyone knows that locals are good? A short story of one event.

We do not want to have globals. Pass it through an argument. But there is so many things to be passed. An item, it’s modifiers, an environment, an … From foo0 to foo1, from foo1 to foo2, from foo2 to…, … to bar. Uff, yes we passed whole set of arguments to foo:

void bar(int e, int f, int g, int h, int x, int y, int a, int b, int c, int e, int d);

so lets run:

void bar(e, f, g, x, h, y, a, b, c, e, d);

Works well for test data, compiles without warning. Good job!?