220 5260 <2c77506f-433f-43b7-871f-e429c4b295bf@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: asaelr@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Some thoughts about coroutines
Date: Thu, 27 Jun 2013 08:17:34 -0700 (PDT)
Lines: 62
Approved: news@gmane.org
Message-ID: <2c77506f-433f-43b7-871f-e429c4b295bf@isocpp.org>
References: <e4828fad-0428-46f8-ad6d-500848c2212b@isocpp.org>
 <291db835-d42d-40cd-8760-47cdf327680d@isocpp.org>
 <7d8a2d85-0995-4833-ad0c-75577f293b63@isocpp.org>
 <bca881ad-7d62-42d6-8e04-eb7320cebed1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_228_15293093.1372346254870"
X-Trace: ger.gmane.org 1372346259 28827 80.91.229.3 (27 Jun 2013 15:17:39 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 27 Jun 2013 15:17:39 +0000 (UTC)
Cc: asaelr@gmail.com, asaelr@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB23LHRZUKRBD5PWGHAKGQECLMEGLI@isocpp.org Thu Jun 27 17:17:40 2013
Return-path: <std-proposals+bncBCB23LHRZUKRBD5PWGHAKGQECLMEGLI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qa0-f71.google.com ([209.85.216.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB23LHRZUKRBD5PWGHAKGQECLMEGLI@isocpp.org>)
	id 1UsDx3-0004uj-0t
	for gclcip-std-proposals@m.gmane.org; Thu, 27 Jun 2013 17:17:37 +0200
Original-Received: by mail-qa0-f71.google.com with SMTP id bv4sf1420102qab.6
        for <gclcip-std-proposals@m.gmane.org>; Thu, 27 Jun 2013 08:17:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:cc:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-google-group-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=1IMoKEjz6/rCM/GSdltPZ5R/ln19Fi4eb20lXFLBGe8=;
        b=PTqbnHHVLDBPf7iYGiY+xfW3DhgyKc6DxZ1aQVkOOWupGrA1bxwdJhHTABzcnhFK9M
         7vdTM1N7Jv/2lia8godw7XmVZPX1738w9Q9tsjkqo7IU4adUz+ujnQea/24hJRC2IlRD
         HLLAKrvPAeruuOEI5nhueoocH0XqZYPCSwY2aMWnU+Wsu6RvAHqjQUQutq07gIClD614
         ABVDejVHgDkr+k6/b/ja/cad7eVYeAfNa+TBHgBcFP1iB5OHJFbg+BungyVGAeJwS+/w
         voZJj+UObEk6H4nXi4Wpm2V55029PQythYbAUvgI6jWV/2wjhqAOJP4RQ3MPK2yTN+rH
         dqVw==
X-Received: by 10.236.135.66 with SMTP id t42mr4984003yhi.36.1372346256022;
        Thu, 27 Jun 2013 08:17:36 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.73.137 with SMTP id l9ls862941qev.0.gmail; Thu, 27 Jun 2013
 08:17:35 -0700 (PDT)
X-Received: by 10.49.35.109 with SMTP id g13mr232300qej.1.1372346255268;
        Thu, 27 Jun 2013 08:17:35 -0700 (PDT)
In-Reply-To: <bca881ad-7d62-42d6-8e04-eb7320cebed1@isocpp.org>
X-Original-Sender: asaelr@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:5260
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5260>

------=_Part_228_15293093.1372346254870
Content-Type: text/plain; charset=ISO-8859-1


>
>
> `fib` is a function. And as I said, if you want to adapt a coroutine to a 
> range, just use something that's generic to all kinds of functions. 
>
My mistyping. I meant to write *auto inter=coro.begin();*  :)

> ++iter; //what does this mean? what is the value of *iter now?
>>
> `++it` should be a no-op (which is totally allowed by the standard). 
>
Why should it be no-op? What happens if I call *++it* again? 

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.



------=_Part_228_15293093.1372346254870
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;bor=
der-left: 1px #ccc solid;padding-left: 1ex;"><br><div>`fib` is a function. =
And as I said, if you want to adapt a coroutine to a range, just use someth=
ing that's generic to all kinds of functions. <br></div></blockquote><div>M=
y mistyping. I meant to write <i>auto inter=3Dcoro.begin();</i>&nbsp; :)<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.=
8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #=
ccc solid;padding-left:1ex">++iter; //what does this mean? what is the valu=
e of *iter now?<br></blockquote><div>`++it` should be a no-op (which is tot=
ally allowed by the standard). <br></div></blockquote><div>Why should it be=
 no-op? What happens if I call <i>++it</i> again? <br></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_228_15293093.1372346254870--

.
