proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests
Walter Bright
newshound2 at digitalmars.com
Mon Feb 12 01:39:31 UTC 2018
On 2/8/2018 7:06 PM, Timothee Cour wrote:
> /"EOC
> This is a multi-line
> heredoc comment allowing
> /+ documented unittests containing nesting comments +/
> and weird urls like https://gcc.gnu.org/onlinedocs/libstdc++/faq.html
> EOS"/
Easy:
mixin template comment(string s) { }
mixin comment!q"EOS
This is a multi-line
heredoc comment allowing
/+ documented unittests containing nesting comments +/
and weird urls like https://gcc.gnu.org/onlinedocs/libstdc++/faq.html
EOS";
It doesn't leave anything in the object file, either.
More information about the Digitalmars-d
mailing list