From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9642027a78f96963 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Newbie-ish question about generics and Ada.Streams Date: Mon, 27 Dec 2010 13:59:27 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1293476367 21121 192.74.137.71 (27 Dec 2010 18:59:27 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 27 Dec 2010 18:59:27 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:U8Y3cyaOMATL/jZm9hBQBfStexA= Xref: g2news2.google.com comp.lang.ada:17135 Date: 2010-12-27T13:59:27-05:00 List-Id: Brian Drummond 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