comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Pragma inline results in duplicate strings?
Date: 1997/06/11
Date: 1997-06-11T00:00:00+00:00	[thread overview]
Message-ID: <EBM4EM.3qB.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: EBIny1.LG7.0.-s@inmet.camb.inmet.com


Tucker Taft (stt@houdini.camb.inmet.com) wrote:
: ... Some compilers "pool" strings, and
: others don't.  There is no reason *not* to pool strings in Ada,
: since they are constants (unlike in C, where a string literal might
: be updated through a pointer).  

I was reminded that ISO/ANSI C does *not* permit updating the characters
of a string literal.  Old "classic" C allowed this sort of thing, but
ISO/ANSI C frowns on it, and I suspect most modern C compilers pool
all duplicate string literals appearing in a single source file.

-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




      reply	other threads:[~1997-06-11  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-04  0:00 Pragma inline results in duplicate strings? Dale Stanbrough
1997-06-04  0:00 ` Samuel Tardieu
1997-06-07  0:00 ` Robert Dewar
1997-06-09  0:00 ` Tucker Taft
1997-06-11  0:00   ` Tucker Taft [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