Proposal for SentinelInputRange

Walter Bright newshound2 at digitalmars.com
Thu Feb 28 08:59:14 PST 2013


On 2/28/2013 3:23 AM, deadalnix wrote:
> On Thursday, 28 February 2013 at 10:57:29 UTC, Walter Bright wrote:
>> Notice the double read of *p. This is what SentinelInputRange is trying to fix.
>>
>
> But it will be optimized away.

(c == 1 || c == 5) does not optimize to (c == 5).


More information about the Digitalmars-d mailing list