Is it possible to use tokens as template parameters?

rempas rempas at tutanota.com
Sun Aug 15 05:45:17 UTC 2021


On Saturday, 14 August 2021 at 15:21:51 UTC, Alexandru Ermicioi 
wrote:
> On Saturday, 14 August 2021 at 13:50:52 UTC, rempas wrote:
>> The behavior I want to achieve is not having to enclose the 
>> word (tokens) in double quotes.
>
> The closest you can get is using q{mixed d code} syntax that is 
> basically a string containing d code, and hence subject to some 
> checkups, and ide highlighting.
>
> Though why do you need this?
>
> Regards,
> Alexandru

I mean I don't... But I was just curious if that's possible. 
Using a constant would probably also work I guess.


More information about the Digitalmars-d mailing list