comp.lang.ada
 help / color / mirror / Atom feed
From: stt@inmet.inmet.com
Subject: Re: C Strings in Ada?
Date: 13 Jun 90 13:43:00 GMT	[thread overview]
Message-ID: <20600049@inmet> (raw)
In-Reply-To: 920024@hpclapd.HP.COM


Re: C Strings in Ada
Please listen to Mike Murphy.  He knows of what he speaks!

In particular, many compilers do *not* use the heap for
objects of dynamic size.  Instead, they use a mark/release discipline
on a stack, either the primary stack or a secondary stack.

Secondly, despite David Emory's appropriate warning, *most* Ada
compilers will treat access-to-*constrained*-string as a simple
address pointing directly at the characters.  You will still
have to worry about the null terminator, since Ada is presuming
the pointed-to string is quite long.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

      parent reply	other threads:[~1990-06-13 13:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-06-04 22:45 C Strings in Ada? Andy DeFaria
1990-06-07 17:41 ` stt
1990-06-08 16:00 ` Andy DeFaria
1990-06-10 20:38   ` Alex Blakemore
1990-06-11 12:57     ` Allan Doyle
1990-06-11 14:59       ` David Kassover
1990-06-11 19:48         ` Allan Doyle
1990-06-11 21:01           ` David Kassover
1990-06-11 22:30           ` Mike Murphy
1990-06-13 21:20           ` Edward Falis
1990-06-11 17:53       ` David Emery
1990-06-11 19:59         ` Allan Doyle
1990-06-15  7:53   ` Jeff Bartlett
1990-06-11 22:39 ` Andy DeFaria
1990-06-12 14:04   ` David Emery
1990-06-12 18:11   ` Mike Murphy
1990-06-13 13:43 ` stt [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