www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: About switch case statements...

reply bearophile <bearophileHUGS lycos.com> writes:
Andrei Alexandrescu:

 Walter's answer to that has put me to silence for good. "But I use 
 fall-through all the time!" I then knew the feature will never make it.

We can add a third type of switch to D, that's safer... Bye, bearophile
Nov 15 2009
parent reply KennyTM~ <kennytm gmail.com> writes:
On Nov 16, 09 02:36, bearophile wrote:
 Andrei Alexandrescu:

 Walter's answer to that has put me to silence for good. "But I use
 fall-through all the time!" I then knew the feature will never make it.

We can add a third type of switch to D, that's safer... Bye, bearophile

safe switch ? :p
Nov 15 2009
parent bearophile <bearophileHUGS lycos.com> writes:
KennyTM~:

  safe switch ? :p

That's cute. But I was thinking of a safer "caseof" used by default, and the less safe C switch used only for C compatibility :-) (" unsafe switch" is not possible because it's against D purposes). Bye, bearophile
Nov 15 2009