Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93419 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91044 invoked from network); 20 May 2016 14:41:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2016 14:41:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.220 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.220 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.220] ([81.169.146.220:23325] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/10-23824-C222F375 for ; Fri, 20 May 2016 10:41:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1463755306; l=1093; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=DHKiYVOv4/KBbthdxCUfMZdRP1+WF9maGAZBSwb2YE8=; b=tbSl60akVXtLls5LqnFi4N0vmpMuAaCXyP8nDf9/8Jz6yQ608OssABCvgSSVNcTVyxs LpMpFtkg8Vc7+UCjFp8TM+BbW3In/eSsf8uR5aHqQ7OPBxn0XEpxGfs1vrHf+u1WUpsnP HUP0pAQgHRFHiIzBiydWUfznA6Xz08aWVdg= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtOnA6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f53.google.com ([74.125.82.53]) by smtp.strato.de (RZmta 37.27 AUTH) with ESMTPSA id 505ed5s4KEfjCOU (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Fri, 20 May 2016 16:41:45 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id n129so275062655wmn.1 for ; Fri, 20 May 2016 07:41:45 -0700 (PDT) X-Gm-Message-State: AOPr4FXaFjw5GnESpQxN7deXpNn4XZi6g7VIQjRpsy7cWkay0kNkYgzNktrfzodxWjcrRsnnYTDvnlc+kfIP9A== MIME-Version: 1.0 X-Received: by 10.194.62.99 with SMTP id x3mr3773191wjr.128.1463755304906; Fri, 20 May 2016 07:41:44 -0700 (PDT) Received: by 10.28.53.132 with HTTP; Fri, 20 May 2016 07:41:44 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2016 16:41:44 +0200 X-Gmail-Original-Message-ID: Message-ID: To: "S.A.N" Cc: internals Content-Type: multipart/alternative; boundary=047d7b86db22fcbc550533471622 Subject: Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value) From: me@kelunik.com (Niklas Keller) --047d7b86db22fcbc550533471622 Content-Type: text/plain; charset=UTF-8 2016-05-20 15:34 GMT+02:00 S.A.N : > Many interfaces work with callback functions, but they might work with > the generators, if there was a method Generator::__invoke($value). You can just use [$generator, "send"]. --047d7b86db22fcbc550533471622--