On Sat, Oct 9, 2010 at 8:00 PM, David Herman <dher...@ccs.neu.edu> wrote: > Ah, yes, I didn't see Carl's solution, which is pleasantly concise and > particularly nice because of the single case. > But I still think the point about fall-through is important to the > performance model of `switch' -- it's what Duff's Device relies on, for > example.
Duff's Device also relies on the fact that C's "case" keyword is really a label used as a jump target . This lets the switch jump into the middle of an expression. I don't think any of the solutions posted so far could be used to implement Duff's Device. Justin _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users