Hello guys,

I have an enumeration which contains symbols of different currencies
like the following:

enum CURRENCY : wchar {

        DOLLAR = '$',
        EURO = '�',
        YEN = ...

}

When I try to append it to a string like

char[] myString = "Currency: " ~ CURRENCY.DOLLAR

I get the following error: "Error: incompatible types for... 'char[]'
and 'int'"

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?

Thanks for any help.

Reply via email to