comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Beginner's questions
Date: 1999/05/03
Date: 1999-05-03T00:00:00+00:00	[thread overview]
Message-ID: <m3g15evaqb.fsf@mheaney.ni.net> (raw)
In-Reply-To: 372D3B9A.5CBA1ABC@frqnet.de

Andreas Winckler <andreas.winckler@frqnet.de> writes:
> For programmers used to Pascal the strings in Ada can be really
> irritating, at least it was for me. I usually use unbounded strings
> which are comparable to the strings in Pascal.

A discriminated record is closer to the Pascal approach.  

I don't recommend using a heap-based solution (type Unbounded_String)
unless you have a compelling need to.

Jean-Pierre Rosen has written a nice variable-length string package:

(start of excerpt from documentation)
What package Variable_Length does

This package provides a simple "variable length string" type. It is
useful when you just want to store strings whose maximum length is known
beforehand. It provides operations that are consistent with those
defined in the Bounded_String and Unbounded_String packages.
(end of excerpt from documentation)

You can get it from the Adalog web page:

<http://perso.wanadoo.fr/adalog/compo2.htm>





  reply	other threads:[~1999-05-03  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-02  0:00 Beginner's questions Marco Schmidt
1999-05-02  0:00 ` Matthew Heaney
1999-05-03  0:00   ` Marco Schmidt
1999-05-03  0:00     ` Matthew Heaney
1999-05-03  0:00 ` Andreas Winckler
1999-05-03  0:00   ` Matthew Heaney [this message]
1999-05-03  0:00     ` Andreas Winckler
1999-05-03  0:00       ` David Starner
1999-05-04  0:00         ` Andreas Winckler
1999-05-04  0:00           ` Larry Kilgallen
1999-05-04  0:00             ` Martin C. Carlisle
1999-05-04  0:00               ` Larry Kilgallen
1999-05-05  0:00                 ` Andreas Winckler
1999-05-03  0:00 ` dennison
1999-05-04  0:00   ` Tucker Taft
1999-05-04  0:00     ` dennison
1999-05-10  0:00       ` Tucker Taft
1999-05-04  0:00 ` czgrr
1999-05-04  0:00   ` Nick Roberts
1999-05-07  0:00     ` Robert Dewar
1999-05-07  0:00       ` David Starner
1999-05-08  0:00         ` ak
replies disabled

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