[Issue 24032] Compiler is parsing string parameters to Templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 6 12:36:06 UTC 2023


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

--- Comment #3 from Puneet Goel <puneet at coverify.org> ---
I am using q{} to write my own DSL.

For this particular thing, I need to extend binary number strings in a way
where I can write stuff like 0b?01?11 where '?' can be used for pattern
matching. So, this becomes blocking for me. Is there an easy solution, or do I
need to discover an alternate syntax for my need?

BTW, what advantage do we gain by making the compiler parse q{} as a token
string?

--


More information about the Digitalmars-d-bugs mailing list