From 1430399288745600136
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,327d55d23ac807ba
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2004-04-16 08:26:37 PST
Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: dsp@bdal.de (=?ISO-8859-1?Q?=22Daniel_Kr=FCgler_=28nee_Spangenberg=29=22?=)
Newsgroups: comp.std.c++
Subject: Re: atexit and/or objects with global storage duration
Date: Fri, 16 Apr 2004 15:26:35 +0000 (UTC)
Lines: 55
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <407F821D.8030203@bdal.de>
References: <407E38E8.8020008@bdal.de> <slrnc7tmhs.gkv.do-not-spam-benh@shadbolt.i.decadentplace.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: mail2news.demon.co.uk 1082129195 29059 10.0.0.1 (16 Apr 2004 15:26:35 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 16 Apr 2004 15:26:35 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BEVEg-0007YY-00
	for mail2news@news.news.demon.net; Fri, 16 Apr 2004 15:26:34 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i3GFQUi2020273; Sat, 17 Apr 2004 01:26:30 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i3GFQQX2020257;
	Sat, 17 Apr 2004 01:26:26 +1000 (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++@ucar.edu
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: de-de, de
X-Newsgroups: comp.std.c++
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=0.1 required=5.2 tests=AWL autolearn=no 
	version=2.60-mulga_r1
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id i3GFQUi2020273
Xref: archiver1.google.com comp.std.c++:1693


Ben Hutchings schrieb:

>"Daniel Kr=FCgler (nee Spangenberg)" wrote:
> =20
>
>>Hello community,
>>
>>yesterday night I stumbled about a problem, for which I could not
>>find an answer in the current C++ standard (2003).
>>   =20
>>
>
>See 18.3/8.  It's not easy to read, but it does cover this situation.
>The 1998 standard did not (see
><http://std.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#3>).
>
><snip>=20
>
You are absolutely right, obviously I was to sleepy to recognize the=20
complete meaning of these
words;-). Funnily the original descriptive part of defect #3 claims to=20
conclude that my example
should lead to undefined behaviour, although the actual proposed (and=20
realized) solution does not
follow this recommandation (I think the solution is quite natural and=20
seems to reflect current
practice, although I did not expect that).

>>Is this program wellformed or does it lead to undefined behaviour?
>>   =20
>>
><snip>
>
>You are confusing two different kinds of error.  If a program is not
>well-formed, this error can and must be detected and reported at
>compile time.  "Undefined behaviour" can only occur in situations
>which the standard does not require implementors to detect.
> =20
>
Right again - abuse of well defined concepts lead to the longest and=20
passionate threads in usenet
and usually I am more careful in the choice of my words.

Greetings from Bremen,

Daniel Kr=FCgler


---
[ 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                       ]



