From -217656147370005878
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,e92ba5a0251f1ca0
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-06-20 10:32:01 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "Carl Daniel" <cpdaniel@pacbell.net>
Newsgroups: comp.std.c++
Subject: Re: C++0x Wish List (deprecate null statement)
Date: Thu, 20 Jun 2002 17:31:29 GMT
Organization: Prodigy Internet http://www.prodigy.com
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <i_1Q8.998$J42.91085000@newssvr14.news.prodigy.com>
References: <23b84d65.0206181331.3d79ce9b@posting.google.com> <cefd6cde.0206190346.697f276@posting.google.com>
X-Trace: mail2news.demon.co.uk 1024594300 mail2news:12846 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Date: Wed, 19 Jun 2002 12:06:38 EDT
X-UserInfo1: Q[R_PJONVBRWBTH]^JKBOW@@YJ_ZTB\MV@BNMRQIMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN
Lines: 27
Xref: archiver1.google.com comp.std.c++:12194

"Michiel Salters" <Michiel.Salters@cmg.nl> wrote in message
news:cefd6cde.0206190346.697f276@posting.google.com...
> Isn't this primarily a QoI thing? If your compiler issued a
> "Warning: if-statement misses controlled statement (extra ';' ?)"
> would you still want the null-statement deprecated?
>
> I commonly write
>
> catch (Ex)
> { ; }
>

Just out of curiousity, why the ; in there?

If I encountered { ; } in code, I'd be suspicious that something had been
accidently deleted, while { } is, to me at least, clearly an intentionally
empty statement.

-cd


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



