Request for comments: std.d.lexer

Walter Bright newshound2 at digitalmars.com
Sun Jan 27 17:36:09 PST 2013


On 1/27/2013 4:53 PM, Brian Schott wrote:
> On Sunday, 27 January 2013 at 23:49:11 UTC, Walter Bright wrote:
>> On 1/27/2013 1:39 PM, Brian Schott wrote:
>>> The file name is accepted for eventual error reporting purposes.
>>
>> Use an OutputRange for that.
>
> I think you misunderstand. The file name is so that if you pass in "foo.d" the
> lexer can say "Error: unterminated string literal beginning on line 123 of
> foo.d". It's not so that error messagaes will be written to a file of that name.

Yes, I did misunderstand. I suggest updating the documentation to clear up the 
misunderstanding.



More information about the Digitalmars-d mailing list