D - Select statement?
- "Lev Elbert" <elbertlev comcast.net> May 08 2004
- "Matthew" <matthew.hat stlsoft.dot.org> May 08 2004
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...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








"Matthew" <matthew.hat stlsoft.dot.org>