Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35919 invoked from network); 16 Apr 2012 06:18:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2012 06:18:24 -0000 Authentication-Results: pb1.pair.com header.from=simonsimcity@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: simonsimcity@googlemail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:48859] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/1A-05733-FA9BB8F4 for ; Mon, 16 Apr 2012 02:18:24 -0400 Received: by obbta17 with SMTP id ta17so6278899obb.29 for ; Sun, 15 Apr 2012 23:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=pqxE8RKbFbSYE+rfUEgFzADTnIHLveCs4kglltRMINE=; b=1BKzBH6cdOJzlRbYnZWzbiU3+wyv9Po8ZiU7yG8rd2rAA37Vw4idBqS7ySt1FGvfnx QetPTNr/AgFPTtaK38xX/0iVxcFt5pRA3GgpCs7EOPLOyy2wuh0c0LQGsWjMrFTxEpnL An5+ZMkjMmKeiZAKCnZWTr/tcAGo+U9cSRywP0U7f11vfh8XKNCeTxnHcsWJmr+ZikYW C5X6RqUYsvkPTY/XI9C0oiuwYnrJtSqxKEmB2z2qoVVsLMYo0ro5A23Kb0VE3xNfU2+s +AZlyMNfVf1cTges+ej5W2nPXgC9RHPVL4LAOdXoDsHvHWX8aBEYBxjJTWiU2Pni8HsA 24IA== MIME-Version: 1.0 Received: by 10.182.192.39 with SMTP id hd7mr13895693obc.47.1334557101635; Sun, 15 Apr 2012 23:18:21 -0700 (PDT) Received: by 10.60.98.74 with HTTP; Sun, 15 Apr 2012 23:18:21 -0700 (PDT) In-Reply-To: <4F8B766F.3000702@ralphschindler.com> References: <4F89D4F1.8070009@ralphschindler.com> <4F8B766F.3000702@ralphschindler.com> Date: Mon, 16 Apr 2012 08:18:21 +0200 Message-ID: To: Ralph Schindler Cc: internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword From: simonsimcity@googlemail.com (Simon Schick) 2012/4/16 Ralph Schindler > > I am not quite following. =C2=A0There is no functional difference between > "class", "CLASS", or "Class". =C2=A0The parser is case insensitive with r= egards > to keywords, which "class" or T_CLASS is on of. =C2=A0The code snipped I = showed > there was from the .phpt test that I had included in the Zend/test code b= ase > to ensure it worked and did not break existing tests. > > As per the namespaced and non-namespaced blocks, I was demonstrating how > ::class would resolve names regardless of if it were a FQCN or a short cl= ass > name. =C2=A0Effectively, you can put ::class behind any "type" name and i= t should > work as demonstrated. > > -ralph > Hi, Ralph Thanks for clarification. I was missing the backslash before Moo::Class which lead to that thought. As the class-definition for Moo is missing, I think it's an empty class (like Baz) on the root-level defined somewhere else, right? Otherwise this should do something else than guessing the class-name. Bye Simon