From -7212852001243499505
X-Google-Thread: f78e5,1e6093a60facd084
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 22 Oct 2006 23:50:01 -0500
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
From: John Nagle <nagle@animats.com>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.std.c++
Subject: Re: [Proposal] noreturn_t
References: <1161490402.699940.293180@b28g2000cwb.googlegroups.com> <453C0E79.10002@erdani.org> <TxU_g.13459$Fk1.31284@twister2.libero.it> <%_U_g.3851$xI4.161@fed1read11>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <94X_g.17189$e66.11689@newssvr13.news.prodigy.com>
X-Complaints-To: abuse@prodigy.net
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: TSU[@I_A\S@QBQLXCJKL^_TDEB\@PD\MNPWZKB]MPXHTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
Date: Sun, 22 Oct 2006 23:45:25 CST
Lines: 31
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-uWs+6FkX/q7rwcUIx6S9vjt6zrAvryFxnQu5hCb5KH/YeNACVLJZibGRRZM5MwmkKIJrUkYIUsGRyJH!6Ke9giwPuvHKjSz9cCWZN93pgF3hGzTQZ1y6kb12XaBeDVT/jlhwwPD5H1F82+Wm8FHfXAccxBk3!+D1R0f3hhbTEvrwGV72yj3CCE2CkeJYY+Bg7
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
Xref: g2news2.google.com comp.std.c++:4190

James Dennett wrote:
> Alberto Ganesh Barbati wrote:
> 
>>Andrei Alexandrescu (See Website For Email) ha scritto:
>>
>>>Andrei Polushin wrote:
>>>
>>>>I propose to add a special type, std::noreturn_t, to indicate that
>>>>function does never return.

   It's not a compelling feature, but if added, it needs to be
part of the declaration, not the implementation, where
the caller can see it.

   Realistically, though, it doesn't have much optimization
value.  Functions that don't return tend not to be called
many times. (You could potentially have a function
that never returned normally, but could throw an exception.
This might be useful when starting up some task which
normally runs forever but could fail, throw, and be restarted
by its caller.)

				John Nagle
				Animats

---
[ 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.comeaucomputing.com/csc/faq.html                      ]



