Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70056 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27293 invoked from network); 7 Nov 2013 13:13:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2013 13:13:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:57923] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/72-16506-BD19B725 for ; Thu, 07 Nov 2013 08:13:00 -0500 Received: by mail-ob0-f172.google.com with SMTP id wm4so309obc.17 for ; Thu, 07 Nov 2013 05:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XF6ZDmhIqi0sI6QHbSjSQVgxOgxwvF6lr4YtMPYEzaM=; b=iZvQF8wVKRfUwTKCb0rAwtOA6WHd9UudAluiOFiP3EwBYy+oWqy4aMEqG06hEK6ttn Auznodoc8J1duAoX49UyVIzDDdPHRYJIqevgKeILf4HZkT5sbbj0KoyZzLlpAcD5IHPg ZOXXhYS35FrjrAuXdYDpuwxBoRfbsQIO+DIandkjyUZctWNPdc2DLjyxjbe0GmMB5VhB r6tIEmMQgNEUkE3CTuytO4fNDrKy1vtMzPRUFi2eS7NSD+sx/J3jFaJ5f+Z0pGbYiFia A0I+/R2e9F7Dwbi27VBRgvR+PQ89AaNpWu8Dh3jJitfQMPKHkzMLIBzdxo4/WFMaF92a Spbw== MIME-Version: 1.0 X-Received: by 10.182.221.230 with SMTP id qh6mr2002899obc.7.1383829977269; Thu, 07 Nov 2013 05:12:57 -0800 (PST) Received: by 10.182.54.112 with HTTP; Thu, 7 Nov 2013 05:12:57 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Nov 2013 14:12:57 +0100 Message-ID: To: Patrick Schaaf Cc: Bob Weinand , internals Content-Type: multipart/alternative; boundary=001a11c2fcb8398e6b04ea960675 Subject: Re: [PHP-DEV] [RFC] Constant Scalar Expressions (with constants) From: nikita.ppv@gmail.com (Nikita Popov) --001a11c2fcb8398e6b04ea960675 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Nov 7, 2013 at 2:08 PM, Patrick Schaaf wrote: > Am 07.11.2013 13:01 schrieb "Bob Weinand" : > > > > https://wiki.php.net/rfc/const_scalar_exprs > > Wow, this looks really nice! > > Will this work with class autoloading, too? i.e. will > > class foo { > const X = bar::X; > } > > trigger autoloading for class bar? > Once again, the code you posted is already supported, not really part of this proposal. And yes, it will invoke the autoloader, see http://codepad.viper-7.com/2Xz8ux :) Nikita --001a11c2fcb8398e6b04ea960675--