Proposal for SentinelInputRange

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Feb 28 22:12:58 PST 2013


01-Mar-2013 02:57, Walter Bright пишет:
> On 2/28/2013 10:39 AM, Dmitry Olshansky wrote:
>> That would mean that when you see 0 or 0x1A you do a check to see if
>> that's the
>> end of input then decide it's really the end of input.
>
> A 0 or a 0x1A is the end of valid D source. Period.

So I thought.

Well, I can't see the difference between 2 sentinel values: both 0 and 
0x1A has to both work. For me that means both values have to be accepted 
as sentinels I'd call that a tuple of sentinels.

 > But that doesn't mean the sentinel has to be a tuple.

Should I say you are getting cryptic?

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list