Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35494 invoked from network); 6 Mar 2015 23:42:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 23:42:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.175 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.175 mail-pd0-f175.google.com Received: from [209.85.192.175] ([209.85.192.175:41352] helo=mail-pd0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/02-15314-F6B3AF45 for ; Fri, 06 Mar 2015 18:42:39 -0500 Received: by pdjy10 with SMTP id y10so8997312pdj.8 for ; Fri, 06 Mar 2015 15:42:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=u5hCQl97Q6VKIzk8j88dpsC7UBWzKRhI/xcZUyy4ljo=; b=CNN/JAygctrN/A1QHzlq5loiDKAn3Qnt0aBG2jeafPAv+dWC+wec7Hq47KrldqVKNR WEnDCA7+9httOKapOVQBr5ARNl6Ump/85Z5quF8S7+mVD+eXVohoaKZKfEudPgGae22r 4PZDJ1DSaWT1YUaHgj3qB5fLfsGWyuVEnb0yKbQ6UD8o0DtXHE12FdZBcMOp7+W32hGL g/G0c10mRn5eoB+Q7DCZOa2t3c3MULo8DyVLiTCF3+it1frUMAegeV2f8PvIf/FdznpG bn8cjl8zIZl4sMJ1vGXbbgG688EOFcrhqNo2bjjn6ZK+J6ryuqxQlaxd0rPBqBbqXY01 zKVQ== X-Received: by 10.66.246.107 with SMTP id xv11mr29622228pac.79.1425685355867; Fri, 06 Mar 2015 15:42:35 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id dp4sm10514050pdb.66.2015.03.06.15.42.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Mar 2015 15:42:34 -0800 (PST) Message-ID: <54FA3B69.1050709@gmail.com> Date: Fri, 06 Mar 2015 15:42:33 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Philip Sturgeon , Robert Stoll CC: PHP Internals References: <010801d055d3$ed5a8fa0$c80faee0$@tutteli.ch> <004d01d05696$9d797410$d86c5c30$@tutteli.ch> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Anonymous Classes From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Right, this here RFC has been drastically improved. > > https://wiki.php.net/rfc/anonymous_classes > > Anyone got any doubts or troubles at this point? > > It's about 5 days until the vote starts. Couple of points to clarify: 1. Is the new syntax "new class ..." or just "class ..." and new works the same? I.e. could you do: $foo = class extends Callback { ... } $bar = new $foo; 2. What is the scope of the anonymous class? Can it get access to parent's variable scope? Private functions? -- Stas Malyshev smalyshev@gmail.com