From 7503484066176443571
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,386ad3d115455fbe
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-12-10 19:55:45 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: markus.mauhart@nospamm.chello.at ("Markus Mauhart")
Newsgroups: comp.std.c++
Subject: Re: properties of scalar objects w/ indeterminate value //Re: iterator defect or feature?
Date: Wed, 11 Dec 2002 03:55:40 +0000 (UTC)
Organization: Customers chello Austria
Lines: 27
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <BRhJ9.99654$A9.1186475@news.chello.at>
References: <arn2gt$5jc8$1@cgl.ucsf.edu> <3de29db4.7069828@news.earthlink.net> <rpNH9.6193$A9.108922@news.chello.at> <3defdcd5.44116609@news.earthlink.net> <qP_H9.14104$A9.230064@news.chello.at> <3DF15F04.1000801@wizard.net> <Yy4J9.84997$A9.1056495@news.chello.at> <3DF56F52.4040102@wizard.net>
X-Trace: mail2news.demon.co.uk 1039578940 25356 10.0.0.1 (11 Dec 2002 03:55:40 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 Dec 2002 03:55:40 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18LxyD-0006ap-00
	for mail2news@news.news.demon.net; Wed, 11 Dec 2002 03:55:38 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id OAA27760; Wed, 11 Dec 2002 14:55:29 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ncar.ucar.edu
X-Newsgroups: comp.std.c++
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-NNTP-Posting-Date: Tue, 10 Dec 2002 09:46:25 MET
X-Spam-Status: No, hits=-5.2 required=5.0
	tests=INVALID_MSGID,NOSPAM_INC,PRIORITY_NO_NAME,
	      QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02
	version=2.41
Xref: archiver1.google.com comp.std.c++:15923

"James Kuyper Jr." <kuyper@wizard.net> wrote ...
>
> Markus Mauhart wrote:
>
> > BTW, from C99 I couldnt find out how conversion (-> copy, assignment)
> > between compound type objects is done: recursive copying of members
> > (like c++) or "memcopy(dst,src,sizeof(both))" ?
>
> It took me a long time to find the relevant clause; it's not in any
> location I'd have expected it to be in.
>
> C99 6.2.6.1: "When a value is stored in an object of structure or union
> type, ... the bytes of the object representation that correspond to any
> padding bytes take unspecified values. 42)"
>
> Footnote 42: "Thus, for example, structure assignment may be implemented
> element-at-a-time or via memcpy."

Thanks !
Markus.

---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



