News for hackers. Stuff that matters.
Re:The History, Controversy, and Evolution of the Goto State... by ensiferum on Monday November 19, 2018 @04:46AM (#18485179)
In c++ however using goto is restricted depending on whether you'd jump over declaration of objects with non-trivial types or not.
Re:The History, Controversy, and Evolution of the Goto State... by int_19h on Monday November 19, 2018 @08:03AM (#18486089)
You can jump past declarations if you're exiting the block - it's only a problem if you're jumping past a declaration to a point where the declared object would still be visible. But the goto equivalent of this code does not require that - it would be a jump to a label after the closing brace.
Re:The History, Controversy, and Evolution of the Goto State... by enriquto on Monday November 19, 2018 @05:42AM (#18485446)
of course it has to be, what would you expect it to do otherwise?