|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - Select statement?
I have a suggestion: let's include in D a select statement with non-static
conditions:
seclect ()
{
case a < b:
....
break;
case sin(k) < cos(b):
....
break;
case str == "12345":
....
break;
case default:
....
break;
}
which is equivalent to if - else if - else block, but in some cases more
compact and understandable.
I would not mind if instead of select another keyword would be used :)
Regards.
May 08 2004
You're posting on the wrong group. Try news://news.digitalmars.com/digitalmars.D "Lev Elbert" <elbertlev comcast.net> wrote in message news:c7jp6o$2m1i$1 digitaldaemon.com... May 08 2004
|