March 26, 2012 [dmd-internals] HEREDOC for token strings | ||||
---|---|---|---|---|
| ||||
Token strings can't be used if the body contains an odd
number of curly braces. This is sometimes an issue when generating mixins.
Falling back to strings is ugly because code formatters fail.
How about extending delimited strings to token string.
s ~= q"CODE"{
{
foo;
}"CODE";
s ~= q"CODE"{
bar;
}
}"CODE";
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals
|
Copyright © 1999-2021 by the D Language Foundation