D-Programming-Language/d-programming-language.org — pull request #60 by Poita (2012-01-15 17:44:41+00:00)
Title: Updated switch documentation to match TDPL.

In particular, variables are allowed in case expressions (evaluated in lexical order until first match).

This is in response to http://d.puremagic.com/issues/show_bug.cgi?id=6176. DMD currently allows variables case expressions for integers, but not strings.

I have also added appropriate formatting for keywords within the text.