comp.lang.ada
 help / color / mirror / Atom feed
From: gisle@spurv.ii.uib.no (Gisle S�lensminde)
Subject: Re: Diff between bounded and unbounded?
Date: 2000/01/24
Date: 2000-01-24T00:00:00+00:00	[thread overview]
Message-ID: <slrn88ov7c.fee.gisle@spurv.ii.uib.no> (raw)
In-Reply-To: 20000124154717.14341.qmail@web217.mail.yahoo.com

MaryAnn Atkinson wrote:

> Thanks for the info. One more question: What is then 
> the difference between BOUNDED and UNBDOUNDED strings?

Bounded string is a generic type which must be instantiated to
a preset/compile-time maximum length, while there is no such 
upper limit for unbounded strings. They can be set to any length 
at run time, given enough RAM.

Another difference is that unbounded strings will allocate
space for itself on the heap, and will allocate more (or less)
storage as needed. This is automatic, and the language standard 
states that all memory used by unbounded strings should be automaticly
released on exit of scope and assignment. 

Bounded strings should not use pointers and dynamic allocation due to 
an implementation advice in The RM.
 
--
Gisle S�lensminde ( gisle@ii.uib.no )   

ln -s /dev/null ~/.netscape/cookies




      parent reply	other threads:[~2000-01-24  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-24  0:00 Diff between bounded and unbounded? MaryAnn Atkinson
2000-01-24  0:00 ` Jeff Carter
2000-01-24  0:00 ` Gisle S�lensminde [this message]
replies disabled

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