// this compiles wrong struct Data { int a,b,c,d; }; void func(Data *item, int val) { Data temp = {0}; *item = temp; item->c = val; }
-
-
@cmuratori@rygorous (a) the discussion is more nuanced than that; (b) no -
- Show replies
New conversation -
-
-
@cmuratori@rygorous There's a canard about novice programmers being too willing to believe it's a compiler bug, and experts too unwilling. -
@nothings@cmuratori@rygorous ... and part of that could be that beginners likely make the kinds of mistakes that look like compiler bugs.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.