Archives for September 6, 2011

Spot the problem

Just for once, a vaguely work-related post, but without any work. What is wrong with this (its in C, of course): switch (stoat) { bool goat = TRUE; case weasel: goat = FALSE /* Fallthrough */ case ferret: mustelid(goat); break; … } where you should assume that “mustelid” represents a block of code large enough…