[Issue 18543] Comments inside string mixin silently short-circuit code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 1 19:39:14 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18543

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Yeah, remember that string mixins are basically like pasting code in place. So,
it's going to act like you pasted that code into your editor, and adding a
comment with // is therefore going to have exactly the same effect as it would
if you pasted code after a //, which means that it's going to be part of the
comment.

--


More information about the Digitalmars-d-bugs mailing list