Interpolation Expression Sequence (IES): Will Delimited Strings Ever Be Supported?
kdevel
kdevel at vogtner.de
Fri Aug 16 11:41:08 UTC 2024
```
void main ()
{
auto html = iq"_
<!DOCTYPE html>
<html>
<head>
<title>$(title)</title>
<link rel = "stylesheet" href = "style.css">
</head>
<body>
_";
}
```
```
$ dmd iesdl.d
iesdl.d(3): Error: semicolon expected following auto declaration,
not `"_\n<!DOCTYPE html>\n<html>\n <head>\n
<title>$(title)</title>\n <link rel = "`
iesdl.d(8): Error: found `stylesheet` when expecting `;`
following expression
iesdl.d(3): expression: `"_\n<!DOCTYPE html>\n<html>\n
<head>\n <title>$(title)</title>\n <link rel = "`
iesdl.d(8): Error: found `style` when expecting `;` following
expression
iesdl.d(8): expression: `" href = "`
iesdl.d(8): Error: found `">\n </head>\n <body>\n_"` when
expecting `;` following expression
```
More information about the Digitalmars-d
mailing list