Proposal for SentinelInputRange
Walter Bright
newshound2 at digitalmars.com
Thu Feb 28 14:17:57 PST 2013
On 2/28/2013 10:12 AM, deadalnix wrote:
> On Thursday, 28 February 2013 at 17:00:51 UTC, Walter Bright wrote:
>> On 2/28/2013 6:31 AM, Steven Schveighoffer wrote:
>>> If this doesn't translate to the same code, I don't know why not.
>>
>> Try it and see with your favorite C compiler.
>>
>> Then try the lookahead cases I also posted.
>
> You are being stubborn here.
>
> You claim that this is significantly faster, but give no numbers.
> You claim that the compiler can't do some optimization, when LLVM does it already.
I didn't say can't, I said didn't. llvm handles that case (which does surprise
me), dmc, gcc, and vc do not. Furthermore, I'll say "cannot" on this:
case '|':
p++;
if (*p == '=')
{ p++;
t->value = TOKorass;
}
else if (*p == '|')
{ p++;
t->value = TOKoror;
}
else
t->value = TOKor;
return;
More information about the Digitalmars-d
mailing list