Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33045 invoked from network); 15 Apr 2012 14:13:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Apr 2012 14:13:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.170 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:37090] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/6E-47365-C87DA8F4 for ; Sun, 15 Apr 2012 10:13:33 -0400 Received: by obbta17 with SMTP id ta17so5530208obb.29 for ; Sun, 15 Apr 2012 07:13:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=2URvnxDaJw7xaH3es0GTJ18UbArOuDucv0+bdpGmOfI=; b=WBs0+hM/zkABiHvyDetpatOrtlsIvzWYhax9A+LUb4GQIxf74eFqNbxc7H59hVSpj6 RlPxocmlPa+olgpGrPBvJAsmmA3zPvAJNIWKCfrXBqog0dEUci5B9e44UTb+lgE6T8ND er54+OfOaT/2CY1I9C6EIxFAQQqtg0MzeLQb274UPX7VAfIctTnyBGCSCnu8m+E1sR5I uQo4MPJR7dbkDZeo8eAc23m7MxSxssu3SNMkFOqANBglOfbHqSw3EOUGD+uRfm5uE7qK B/dt29osSNrhBbZwx3aRwULkhjVEFElwVb2riMs12ayNTlz7or2NOvpTrRQIxQ7XpN81 TUmg== Received: by 10.60.20.231 with SMTP id q7mr11719308oee.63.1334499209491; Sun, 15 Apr 2012 07:13:29 -0700 (PDT) Received: from ralph-macbook.local (ip174-73-14-247.no.no.cox.net. [174.73.14.247]) by mx.google.com with ESMTPS id b2sm16404115obo.22.2012.04.15.07.13.28 (version=SSLv3 cipher=OTHER); Sun, 15 Apr 2012 07:13:28 -0700 (PDT) Message-ID: <4F8AD787.8040903@ralphschindler.com> Date: Sun, 15 Apr 2012 09:13:27 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: Marco Pivetta CC: internals References: <4F89D4F1.8070009@ralphschindler.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmnB5z4V4EYLocoIlkCY+l3SKb/BWN/zcAjiQSfwhm08UFapfFFsJDfmTJw70WU2VGcrQOT Subject: Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword From: ralph@ralphschindler.com (Ralph Schindler) > I used to implement `public static function getClass() { return > get_called_class(); }`, so I really like this one, makes it also easier > for IDEs when refactoring code :) Oh completely, that is one of the major benefits. My current workflow for refactoring is to refactor with the built-in support, but then also having to go find/replace on the full class name, just in case. -ralph