Nrgyzer <[email protected]> wrote:
But... when I try the following:char[] myString = "Currency: " ~ cast(char) CURRENCY.DOLLAR It works, but not for all currencies. What can I do to support all currencies?
The problem is that not all UTF-8 code points fit in one char.
I would recommend in this situation to use a string enum:
enum CURRENCY : string {
DOLLAR = "$",
EURO = "€",
YEN = ...
}
--
Simen
