Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68734 invoked from network); 2 Mar 2015 09:45:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 09:45:11 -0000 Authentication-Results: pb1.pair.com header.from=php@duncanc.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@duncanc.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain duncanc.co.uk from 209.85.217.172 cause and error) X-PHP-List-Original-Sender: php@duncanc.co.uk X-Host-Fingerprint: 209.85.217.172 mail-lb0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:46412] helo=mail-lb0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/73-48321-62134F45 for ; Mon, 02 Mar 2015 04:45:10 -0500 Received: by lbiz11 with SMTP id z11so2814187lbi.13 for ; Mon, 02 Mar 2015 01:45:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=D1qbJ4xKP79pSb0qwsK11V4vUusHn4uT2tyz3Mvig5U=; b=DECj3RLLxFZ6wX0KBbcqqMOhA62L/CywD9xVesSMn7OE+j46Syngqd1RIalie82WfQ Ek3Be8F39Q7J9KxCtclmlMQ5GZATrYRwhG4oynUylOG+fMEigK5+N5hmEyAuE+1fIdrc 0tvR/kcauiRckInOfGfAxGXn1ha1oG7oJGk/pWBFVy7Zbd2kVzY3XsDON9Itgo5TcZtU 2PHmb3ZEgwiu9ISnFLEp946u//QP9n02D4177BpgDyN+fIooo4aQiVxaZyBg3EKJDPSa s2Ik7cVolPu3LFVZUpkopfKsmS9YsbGste5w5w5fAOjlaV9IIvyjTVaa7QJiWrATz1lO p23Q== X-Gm-Message-State: ALoCoQme9i9pPvs/qGI531Hrch/BRnSZT/gWVCOse433sZ3n3NnJPoP7jEYITwqSZPC3Fr8KsOgz X-Received: by 10.112.139.136 with SMTP id qy8mr23523853lbb.38.1425289506073; Mon, 02 Mar 2015 01:45:06 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPSA id an8sm2417888lbc.45.2015.03.02.01.45.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 01:45:05 -0800 (PST) Received: by lbdu10 with SMTP id u10so28743833lbd.7 for ; Mon, 02 Mar 2015 01:45:03 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.90.193 with SMTP id by1mr23060911lbb.113.1425289503835; Mon, 02 Mar 2015 01:45:03 -0800 (PST) Received: by 10.25.212.200 with HTTP; Mon, 2 Mar 2015 01:45:03 -0800 (PST) X-Originating-IP: [195.99.194.20] In-Reply-To: References: Date: Mon, 2 Mar 2015 09:45:03 +0000 Message-ID: To: Niklas Keller Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1133ae12942a9605104b1235 Subject: Re: [PHP-DEV] [RFC Discuss] Generator Delegation From: php@duncanc.co.uk (Craig Duncan) --001a1133ae12942a9605104b1235 Content-Type: text/plain; charset=UTF-8 On 2 March 2015 at 00:17, Niklas Keller wrote: > > The proposed syntax has an issue: > > > function a () { > echo yield * 3; > } > > $a = a(); > $a->send(42); > > http://3v4l.org/n1sGb#v550 > > This is currently valid PHP. > > I've created a test for this, so we don't forget it in future https://github.com/php/php-src/pull/1133 --001a1133ae12942a9605104b1235--