comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: I need a little help - it's been a long time - with enumeration type  and for use representation
Date: Fri, 13 Nov 2009 11:46:08 -0700
Date: 2009-11-13T11:46:08-07:00	[thread overview]
Message-ID: <hdk9ds$qmn$1@news.tornevall.net> (raw)
In-Reply-To: <7495d29e-0361-4eba-9e22-a770ae50f113@d5g2000yqm.googlegroups.com>

Harry Tucker wrote:
> 
> I have a piece of data which represents a enumeration as a hexadecimal
> value. It is a bit field but I see the data most usefull as an
> enumeration. for example in the CSV file the data is represented as
> '0x1'. So I defined the enum as:

Since your input is text, not binary, a non-default representation doesn't 
really buy you anything. You'll have to parse and interpret the text, as others 
have explained.

-- 
Jeff Carter
"Son of a window-dresser."
Monty Python & the Holy Grail
12



      parent reply	other threads:[~2009-11-13 18:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13 16:03 I need a little help - it's been a long time - with enumeration type and for use representation Harry Tucker
2009-11-13 17:24 ` Niklas Holsti
2009-11-13 17:24 ` Dmitry A. Kazakov
2009-11-13 18:48   ` Jeffrey R. Carter
2009-11-13 19:13     ` Dmitry A. Kazakov
2009-11-13 20:32       ` Jeffrey R. Carter
2009-11-13 20:53         ` Dmitry A. Kazakov
2009-11-13 21:30           ` Jeffrey R. Carter
2009-11-14  9:24             ` Dmitry A. Kazakov
2009-11-13 18:46 ` Jeffrey R. Carter [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox