Proposal for SentinelInputRange

Jacob Carlborg doob at me.com
Thu Feb 28 23:41:09 PST 2013


On 2013-03-01 07:12, Dmitry Olshansky wrote:

>> 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.

I think I understand how Walter things here. The D code always ends with 
'0' or '0x1A'. Regardless of what the end character is, DMD will always 
add an '0' to the end.

But you do need to check for both 0 and 0x1A.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list