Interpolation Expression Sequence (IES): Will Delimited Strings Ever Be Supported?
kdevel
kdevel at vogtner.de
Fri Aug 16 14:08:07 UTC 2024
On Friday, 16 August 2024 at 13:49:58 UTC, kdevel wrote:
> [2] https://dlang.org/spec/lex.html#string_literals "Token
> strings open with the characters q{ and close with the token }.
> In between must be valid D tokens."
Sorry for replying to myself. But what constantly bothers me is
imprecise language in the documentation. Let me quote from the
page
above:
"Token strings open with the characters q{ and close with the
token }. In between must be valid D tokens."
Now from the example on that same page:
```
// q{ __EOF__ } // error
// __EOF__ is not a token, it's end of
file
```
__EOF__, however, /is/ a token, as we may read in [1] or [2].
[1] Issue 3695 - __EOF__ token not documented
https://issues.dlang.org/show_bug.cgi?id=3695
»In "D 1.x -> D 2.x migration guide" and in "lex.html", the
new
token __EOF__ introduced in the D 2 is not documented.
I think it should be explained in the "Special Tokens"
section.«
[2] Special Tokens
https://dlang.org/spec/lex.html#specialtokens
»__EOF__ tells the scanner to ignore everything after this
token«
More information about the Digitalmars-d
mailing list