DMD 1.021 and 2.004 releases

Aziz K. aziz.kerim at gmail.com
Mon Sep 10 14:38:34 PDT 2007


Hello Walter,

Thanks for the release. 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?

Token string examples:
q{__TIME__} // Should special tokens be evaluated? Resulting in a  
different string than "__TIME__"?
q{666, this is super __EOF__} // Should __EOF__ be evaluated here causing  
the token string to be unterminated?
q{#line 4 "path/to/file"
} // Should the special token sequence be evaluated here?

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"

Regards,
Aziz



More information about the Digitalmars-d-announce mailing list