A safer switch?
Adam D. Ruppe
destructionator at gmail.com
Mon Oct 12 07:44:55 PDT 2009
On Mon, Oct 12, 2009 at 04:03:13AM -0400, bearophile wrote:
> But the "-h" case misses a break.
This has been discussed to death *multiple times*. Why bring it up again,
especially with nothing really new to add to the argument?
Here's what I suggest you do to get what you want: make a macro in your
editor so whenever you type the word "case" it expands it to "break; case".
And expand "default" to "break; default".
Then, you'll get the implicit breaks you want without changing the language
for the rest of us.
--
Adam D. Ruppe
http://arsdnet.net
More information about the Digitalmars-d
mailing list