220 5266 <1a1fd94c-eb51-4ff4-8e3d-7781a6c9b925@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 18:10:04 -0700 (PDT)
Lines: 50
Approved: news@gmane.org
Message-ID: <1a1fd94c-eb51-4ff4-8e3d-7781a6c9b925@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>
 <2c77506f-433f-43b7-871f-e429c4b295bf@isocpp.org>
 <3e94ef89-4ea8-4549-827f-94dd7a32b9fa@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_86_19872990.1372381804311"
X-Trace: ger.gmane.org 1372381808 20773 80.91.229.3 (28 Jun 2013 01:10:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 28 Jun 2013 01:10:08 +0000 (UTC)
Cc: asaelr@gmail.com, asaelr@gmail.com, asaelr@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB23LHRZUKRB3GEWOHAKGQE5TNVZGA@isocpp.org Fri Jun 28 03:10:09 2013
Return-path: <std-proposals+bncBCB23LHRZUKRB3GEWOHAKGQE5TNVZGA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vb0-f71.google.com ([209.85.212.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB23LHRZUKRB3GEWOHAKGQE5TNVZGA@isocpp.org>)
	id 1UsNCQ-0007o7-V1
	for gclcip-std-proposals@m.gmane.org; Fri, 28 Jun 2013 03:10:07 +0200
Original-Received: by mail-vb0-f71.google.com with SMTP id f12sf2066665vbg.10
        for <gclcip-std-proposals@m.gmane.org>; Thu, 27 Jun 2013 18:10:06 -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=9BmFljBp9QAHMxnG3o7T2TNIdwF5WnNDTXGtNlheFLA=;
        b=pWgCS8u6TZk1sr4tD+AtE2GctvIG6gQn94Tc2LDPZPtqv95kjG/nmUCPzX1KOwJw9B
         PSSB/GdTfyxsNy/RsVvz6/W46hIVF3+1HDFHRHQ64RtkD01JcVNy1WExVNJER0X/dns+
         UaSOEA2wJF5cIVjBefaamRLQcYg98zvqhRZW2RsIYeGUEqwJHz9KAegrc5cBQXNpSBlo
         7Clod3neEfRFKCfcw5DlDOLPO8tTDDuVdhkq6HPDUPmry5gvQ2CmdVTYwxMURV+sMz4Y
         a3h6OL9KKjouayPEHomRSUac4Nx2FZ9IqXxWr3rU3TWhYuAaOUBXzi/FVf51PQDCGuo/
         2QSw==
X-Received: by 10.236.150.82 with SMTP id y58mr6493947yhj.5.1372381805926;
        Thu, 27 Jun 2013 18:10:05 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.108.74 with SMTP id hi10ls1171978qeb.50.gmail; Thu, 27 Jun
 2013 18:10:04 -0700 (PDT)
X-Received: by 10.49.4.104 with SMTP id j8mr298478qej.40.1372381804708;
        Thu, 27 Jun 2013 18:10:04 -0700 (PDT)
In-Reply-To: <3e94ef89-4ea8-4549-827f-94dd7a32b9fa@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:5266
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5266>

------=_Part_86_19872990.1372381804311
Content-Type: text/plain; charset=ISO-8859-1

Another thing - what should *operator()* return when the coroutine is done? 
We can't know it's done before the internal function actually ends, so we 
can't just check *isdone() *(or, maybe, *operator bool()* ) to know if we 
shouldn't call *operator()*.
(One solution is to let the coroutine not to return control just when 
yielding, but instead continue running until just before the next *return*statement, but I think it's kind of evil)

-- 

--- 
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_86_19872990.1372381804311
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Another thing - what should <i>operator()</i> return when the coroutine is =
done? We can't know it's done before the internal function actually ends, s=
o we can't just check <i>isdone() </i>(or, maybe, <i>operator bool()</i> ) =
to know if we shouldn't call <i>operator()</i>.<br>(One solution is to let =
the coroutine not to return control just when yielding, but instead continu=
e running until just before the next <i>return</i> statement, but I think i=
t's kind of evil)<br>

<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_86_19872990.1372381804311--

.
