Forces evaluation as translated string.
In a limited set of circumstances, a TranslatableString may forcefully need to be interpreted as a string. One of these cases is a *named* enum:
enum E {member = tr!"translation"} writeln(E.member); // "member" writeln(E.member.toString); // "translation"
Contrary, anonimous enums and manifest constants do not require this treatment:
enum {member = tr!"translation"} writeln(member); // "translation"
See Implementation
Forces evaluation as translated string.
In a limited set of circumstances, a TranslatableString may forcefully need to be interpreted as a string. One of these cases is a *named* enum:
Contrary, anonimous enums and manifest constants do not require this treatment: