From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Newbie-ish question about generics and Ada.Streams
Date: Mon, 27 Dec 2010 13:59:27 -0500
Date: 2010-12-27T13:59:27-05:00 [thread overview]
Message-ID: <wcc4o9zca9c.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: ohhhh6tr9nit36daakg9m0i6bgq4ug3knp@4ax.com
Brian Drummond <brian_drummond@btconnect.com> writes:
> Comments welcome, but the specific points I am unhappy with are:
> ...[3 things]
It's reasonable to be unhappy about these things.
There are no better workarounds than the ones
you have already discovered.
But why don't you use Shape'Image, possibly with
a call to To_Lower?
Or, in your tables mapping enums to strings, use
pointers, so you can make the strings exactly
the right length, instead of blank padding them?
Most likely, your enums will be in a library package
spec, so there's no need to Unchecked_Deallocate
the strings.
- Bob
next prev parent reply other threads:[~2010-12-27 18:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-27 17:23 Newbie-ish question about generics and Ada.Streams Brian Drummond
2010-12-27 18:59 ` Robert A Duff [this message]
2010-12-27 23:26 ` Brian Drummond
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox