This is all rapidly reminding me of why I always used to choose blocks of if
statements over switch statements.  Switch statements are useful, quick and
easy, but I find them full of nasty gotchas...

On Fri, Apr 10, 2009 at 10:40 AM, Ian Osgood <i...@quirkster.com> wrote:

> Amplifying Bart's explanation about C switch statements, it helps to
> remember that C was designed to be a step above assembly language. So
> remember your basic assembly language coursework when you talked about jump
> tables? The C switch statement is just pretty syntax for a jump table.
>
> (If you really want to bend your brain, go look up Duff's Device.)
>
> Ian
>
>
_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to