Confession time. I used to write a lot of
do
{
} while (0);
blocks and then use break; to avoid goto.
As my defence, I was young and felt quite clever.
Confession time. I used to write a lot of
do
{
} while (0);
blocks and then use break; to avoid goto.
As my defence, I was young and felt quite clever.
sintonen@infosec.exchange I was healed from my fear of global variables when I read about the "singleton" and it's like... Sometimes someone needs to just come up with a cool sounding name to make you reevaluate your choices
@harrysintonen when I was young I similarly avoided global variables by stuffing them into a "context" structure that would be passed by argument pretty much everywhere