From: Pablo <pablittto@gmail.com>
Subject: Concatenate enumeration
Date: Mon, 23 Nov 2009 10:15:52 -0800 (PST)
Date: 2009-11-23T10:15:52-08:00 [thread overview]
Message-ID: <be502fa4-37e4-47c0-a0ba-1618eee9a35e@1g2000vbm.googlegroups.com> (raw)
Hi, I have a enumerate type and I have another one which I want to add
some enumerations.
So:
type Enumerate_Type is
(
NONE,
READY
);
for Enumerate_Type use
(
NONE => 0,
READY=> 1
);
for Enumerate_Type'Size use 1;
and I want to create a new type Enumerate2_Type which could be the
form
type Enumerate_Type is
(
NONE,
READY,
OFF
);
for Enumerate_Type use
(
NONE => 0,
READY=> 1,
OFF => 2
);
for Enumerate_Type'Size use 2;
How to I do this without having to explicit clone the first one?
Thanks
next reply other threads:[~2009-11-23 18:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 18:15 Pablo [this message]
2009-11-23 19:14 ` Concatenate enumeration Jeffrey R. Carter
2009-11-23 23:21 ` Robert A Duff
2009-11-25 22:53 ` Randy Brukardt
2009-11-26 8:59 ` Dmitry A. Kazakov
2009-11-26 9:48 ` Georg Bauhaus
2009-11-26 10:03 ` Dmitry A. Kazakov
2009-11-24 19:42 ` Eryndlia Mavourneen
-- strict thread matches above, loose matches on Subject: below --
2010-10-22 19:49 okellogg
2010-10-26 0:29 ` Yannick Duchêne (Hibou57)
2010-11-12 17:55 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox