comp.lang.ada
 help / color / mirror / Atom feed
* Re: Flexible Strings (was Equality operator...)
@ 1997-04-30  0:00 W. Wesley Groleau (Wes)
  1997-04-30  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 30+ messages in thread
From: W. Wesley Groleau (Wes) @ 1997-04-30  0:00 UTC (permalink / raw)



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.
---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <199705010554.WAA24507@ni1.ni.net>]

end of thread, other threads:[~1997-05-12  0:00 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-30  0:00 Flexible Strings (was Equality operator...) W. Wesley Groleau (Wes)
1997-04-30  0:00 ` Matthew Heaney
1997-05-01  0:00   ` Robert Dewar
1997-05-02  0:00   ` Kevin Cline
1997-05-03  0:00     ` Robert Dewar
1997-05-04  0:00       ` Kevin Cline
1997-05-04  0:00         ` Robert Dewar
1997-05-06  0:00           ` Kaz Kylheku
1997-05-07  0:00             ` Robert Dewar
1997-05-07  0:00             ` Kevin Cline
1997-05-07  0:00               ` Robert Dewar
1997-05-07  0:00               ` Jon S Anthony
1997-05-07  0:00               ` Robert A Duff
1997-05-07  0:00               ` Matthew Heaney
1997-05-07  0:00                 ` Jon S Anthony
1997-05-07  0:00             ` Robert Dewar
1997-05-07  0:00             ` Robert A Duff
1997-05-07  0:00               ` Robert Dewar
1997-05-08  0:00               ` Robert I. Eachus
1997-05-09  0:00           ` Erik Magnuson
1997-05-10  0:00             ` Robert Dewar
1997-05-10  0:00               ` Matthew Heaney
1997-05-10  0:00             ` John G. Volan
1997-05-10  0:00               ` Robert Dewar
1997-05-10  0:00                 ` Matthew Heaney
1997-05-11  0:00                   ` Robert Dewar
1997-05-12  0:00               ` Erik Magnuson
1997-05-03  0:00     ` Jon S Anthony
     [not found] <199705010554.WAA24507@ni1.ni.net>
1997-05-01  0:00 ` W. Wesley Groleau (Wes)
1997-05-02  0:00   ` Robert Dewar

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