@cmuratori Wanted to ask sth.In the last Witness Wednesday,you put a for loop inside a static function in a {} block.Why?
@npatsiouras It is from the days when GNU's for scoping differed from MSVC's. I believe it is no longer necessary, but I still do it.
-
-
@cmuratori I see.I never understood the use of blocks.Is there any point today?Apart from short inline functions appearing once in the code. -
@npatsiouras It is to scope the variables. int x = 5; { ... } ++x; is valid, whereas {int x = 5; ...} ++x; is an error. - Show replies
New conversation -
-
-
@cmuratori@npatsiouras It hasn't been necessary for 10 years. -
@rygorous@npatsiouras I starting doing it in... wait for it... 1996. - Show replies
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.