Proposal for SentinelInputRange

Walter Bright newshound2 at digitalmars.com
Wed Feb 27 23:23:41 PST 2013


On 2/27/2013 11:02 PM, Dmitry Olshansky wrote:
> Inside of the D lexer:
>
> EOF is 0 or 0x1a :)

There is always a terminating 0, even if the file ends in 0x1a.

(The 0x1A comes from some old editors that end a file with a control Z.)


More information about the Digitalmars-d mailing list