About switch case statements...
Leandro Lucarella
llucax at gmail.com
Sun Nov 15 19:10:54 PST 2009
Walter Bright, el 15 de noviembre a las 18:10 me escribiste:
> Ellery Newcomer wrote:
> >Just did a quick scan of phobos1. Found 5 instances of fallthrough, not
> >including one around line 182, format.d
> >
> > case Mangle.Tdchar:
> > ti = typeid(dchar);
> > default:
> > ti = null;
> >
> >I have a hard time believing that was intentional, although it as near
> >as I can tell it will never be executed.
> >
> >"Written by Walter Bright"
> >
> >hm.
> >
>
> LOL! Looks like you got me there. It appears here: http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/format.d?rev=132
> in the first version of that switch statement.
>
> I'll check in a fix.
>
> Lesson learned: Never open source your software! <g>
Yes, you might get a good quality software when doing that, who wants
that!? =)
--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
I am so psychosomatic it makes me sick just thinking about it!
-- George Constanza
More information about the Digitalmars-d
mailing list