I am attempting the following:
constants.d:
module constants;
enum Urls : string
{
root = "/",
awesome = root ~ "AwEsOmE"
}
template.dt:
//...
- import constants;
p= Urls.awesome
//...
The p element includes the string "awesome" after this, not "AwEsOmE".
Am I missing something or is this a bug? It works if I declare it as "enum urlAwesome = "..."" instead, but I don't get nesting then.