From -8116573789033871713
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1149ec,c5e1f3188bfb5123
X-Google-Attributes: gid1149ec,public
X-Google-Thread: f78e5,c5e1f3188bfb5123
X-Google-Attributes: gidf78e5,public
From: wmm@fastdial.net
Subject: Re: C and C++ Standard incompatibility for signed character type
Date: 2000/10/16
Message-ID: <8sfgvv$rro$1@nnrp1.deja.com>#1/1
X-Deja-AN: 682179057
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <mDjqOSLqT7Z8L1bgEhHCTMYSNiXB@4ax.com> <8sernp$8d3$1@nnrp1.deja.com> <slrn8umag9.d76.Team-Rocket@nightrunner.nm.dnsalias.net>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 971724549 mail2news:17170 mail2news mail2news.demon.co.uk
X-Http-Proxy: 1.1 x52.deja.com:80 (Squid/1.1.22) for client 205.181.152.41
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Mon Oct 16 18:22:01 2000 GMT
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MyDeja-Info: XMYDJUIDwmmj16
Newsgroups: comp.std.c++,comp.std.c

In article <slrn8umag9.d76.Team-Rocket@nightrunner.nm.dnsalias.net>,
  Team-Rocket@gmx.net (Niklas Matthies) wrote:
> There doesn't seem to be the need to apply strcpy() on a memory chunk
> whose contents wasn't created by write accesses through lvalues of
type
> char (or by equivalent means), i.e. that doesn't contain trap values.
> So this rationale doesn't seem valid.

What we were concerned about was "holes" in the object
representation, either in native types or as the result of
alignment padding in class or array objects.  We felt that
it was unreasonable to require implementations to initialize
the holes to prevent trapping while copying objects whose
value representation was well-defined.

--
William M. Miller, wmm@fastdial.net
Vignette Corporation (www.vignette.com)


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]




