Proposal for SentinelInputRange
    Jacob Carlborg 
    doob at me.com
       
    Thu Feb 28 06:48:02 PST 2013
    
    
  
On 2013-02-28 15:31, Steven Schveighoffer wrote:
> while(!r.empty)  // inlined to r.front != 0
> {
>     switch(r.front) // why would another load occur here?
>     {
>        // no need to check for 0, already done
>        ...
>     }
> }
Don't you have to check for 0 anyway. You could still have more data in 
the buffer? I doesn't have to be the manually added sentential that is 
encountered.
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d
mailing list