Proposal for SentinelInputRange

Walter Bright newshound2 at digitalmars.com
Wed Feb 27 21:12:06 PST 2013


On 2/27/2013 9:03 PM, Andrej Mitrovic wrote:
> But I guess this defeats the purpose of the switch statement (i.e. optimizations).

It certainly does defeat the performance of the switch statement, and hence the 
point of the sentinel.

> Btw can we get a clear opinion on whether 5862 is an actual bug that needs to be
> fixed?

I'd have to investigate.


More information about the Digitalmars-d mailing list