The most useless "GNU C" extension ever: you can omit the = in C99 designated initializers. AKA a bug failing to catch syntax errors.
-
-
@RichFelker the standard permits things like struct mystruct b; b=(struct mystruct){ .a=1, .b=2}; and as myfun( &(struct mystruct){}); -
@CrazyLogLad {} is not valid C. The correct form is {0}.
End of conversation
New conversation -
-
-
@RichFelker if I would have to pick, I would consider, nested functions or variable member not at end of struct as worse "extension" sinsThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@RichFelker so I was just suggesting a confusion between those forms and struct mystruct a = {.a=1};Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.