Обсуждение: [OT] enum translation

Поиск
Список
Период
Сортировка

[OT] enum translation

От
"Jean-Yves F. Barbier"
Дата:
Hi list,

Enum as a column type is a very practical thing.
However, I wonder how you manage enum members translations
into your programs?

JY
--

Re: [OT] enum translation

От
Merlin Moncure
Дата:
On Thu, Jan 5, 2012 at 10:19 AM, Jean-Yves F. Barbier <12ukwn@gmail.com> wrote:
> Hi list,
>
> Enum as a column type is a very practical thing.
> However, I wonder how you manage enum members translations
> into your programs?

Not sure I follow the question.  Enum comes back as string, so you
either use the string directly or translate to something else via
classic data structure such as hash table.

merlin