dmd 1.046 and 2.031 releases
Denis Koroskin
2korden at gmail.com
Mon Jul 6 11:30:25 PDT 2009
On Mon, 06 Jul 2009 14:12:40 +0400, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Denis Koroskin wrote:
>> Does it compare on case-by-case basis? Up to 256 comparisons?
>
> What do you mean? Obj2asm will show what it is doing.
I mean, will it translate
switch (i) {
case 0:
..
case 9:
doSomething();
}
into
if (i == 0 || i == 1 || i == 2 || etc) doSomething();
or into
if (i >=0 || i <= 9) doSomething();
More information about the Digitalmars-d-announce
mailing list