@cmuratori Wanted to ask sth.In the last Witness Wednesday,you put a for loop inside a static function in a {} block.Why?
@npatsiouras So it controls the lifetime of variables for you. That is still very useful, even though the for() scoping is now standard.
-
-
@cmuratori I know what it does,I just haven't found real use for it so far.And thought if it was a relic of old ways mostly. -
@npatsiouras A example modern use is {block_timer Timer("something"); ... } which has a constructor/destructor pair that profiles the code.
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.