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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2925b133078d1557,start X-Google-Attributes: gid103376,public From: "W. Wesley Groleau (Wes)" Subject: Re: Flexible Strings (was Equality operator...) Date: 1997/04/30 Message-ID: <9704301422.AA07755@most>#1/1 X-Deja-AN: 238470804 Sender: Ada programming language Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Mailer: Elm [revision: 70.85] Newsgroups: comp.lang.ada Date: 1997-04-30T00:00:00+00:00 List-Id: I never had a problem implementing an Ada-83 equivalent of bounded strings so that no heap was required. Did it pretty much as Matt Heaney suggested, after reviewing a couple of "free" dynamic_strings packages and finding that nearly every operation leaked heap. The one thing I really missed, however, is still not available in Ada 95: assigning string literals to these things. I think that using unary "+" is a C-like solution (i.e., sacrificing "intuitive" readability to save keystrokes). Defining a function that looked like a type conversion was better for the READER, but since you can't use the actual type name, it posed a memory inconvenience on the writer. --------------------------------------------------------------------------- W. Wesley Groleau (Wes) Office: 219-429-4923 Hughes Defense Communications (MS 10-41) Home: 219-471-7206 Fort Wayne, IN 46808 (Unix): wwgrol@pseserv3.fw.hac.com -- SPAM should be sent to I.want.one@mailbombs.for.idiots.org If you want to be prosecuted under 27 USC 227, go ahead and send it here. ---------------------------------------------------------------------------