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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!bu.edu!inmet!stt From: stt@inmet.inmet.com Newsgroups: comp.lang.ada Subject: Re: C Strings in Ada? Message-ID: <20600049@inmet> Date: 13 Jun 90 13:43:00 GMT References: <920024@hpclapd.HP.COM> Nf-ID: #R:hpclapd.HP.COM:920024:inmet:20600049:000:613 Nf-From: inmet.inmet.com!stt Jun 13 09:43:00 1990 List-Id: 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