Re:John Carmack on Inlined Code
by e12e on Saturday September 27, 2014 @01:57AM
(#8376209)
The first break is ignored?
[ Parent
| on HN ]
Not exactly. But it does create a no-op default. I've never seen/used this pattern, so I would have to go compile this down into assembly and play with it to give you a more complete answer.
Re:John Carmack on Inlined Code
by abecedarius on Saturday September 27, 2014 @04:48AM
(#8376495)
Dropped by dead-code elimination. A compiler might conceivably issue a warning that the first break is unreachable, though that's never happened so far.