DMD 1.021 and 2.004 releases
Walter Bright
newshound1 at digitalmars.com
Tue Sep 11 00:36:21 PDT 2007
Aziz K. wrote:
> Could you clarify a few things regarding the new
> string literals for me, please?
>
> Example:
> q"/abc/def/" // Is this "abc/def" or is this an error?
Error.
> Token string examples:
> q{__TIME__} // Should special tokens be evaluated? Resulting in a
> different string than "__TIME__"?
No, no.
> q{666, this is super __EOF__} // Should __EOF__ be evaluated here
> causing the token string to be unterminated?
Yes (__EOF__ is not a token, it's an end of file)
> q{#line 4 "path/to/file"
> } // Should the special token sequence be evaluated here?
No.
> You provided the following example on the lexer page:
> q{ 67QQ } // error, 67QQ is not a valid D token
> Isn't your comment wrong? I see two valid tokens there: an integer "67"
> and an identifier "QQ"
I think you're right.
More information about the Digitalmars-d-announce
mailing list