<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PHP-DEV] Re: Namespace resolution rules has been changed?</title>
        <description> &amp;gt; true, however i have a counter example: classes from more general namespace 
&amp;gt; that use further nested classes (think some kind of behaviour and different 
&amp;gt; drivers/plugins for example).

&amp;gt; so while it's true that more nested classes usually extend the less nested 
&amp;gt; ones it also common for more generic code to use it's namespace descendants. 
&amp;gt; in sutch condition possibility to use just the remaining namespace part is a 
&amp;gt; big help and i'd say it's usage would be more comon than single &amp;quot;extends&amp;quot; at 
&amp;gt; class definition where you're obligated to supply FQN [1].

The more generic code (i.e. application code) is located usually in its own namespace, so it must use FQN. FQN with leading backslash.

DG.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php</description>
        <link>http://www.serverphorums.com/read.php?7,3192,3192#msg-3192</link>
        <lastBuildDate>Mon, 20 May 2013 07:05:06 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?7,3192,3192#msg-3192</guid>
            <title>[PHP-DEV] Re: Namespace resolution rules has been changed?</title>
            <link>http://www.serverphorums.com/read.php?7,3192,3192#msg-3192</link>
            <description><![CDATA[ &gt; true, however i have a counter example: classes from more general namespace <br />
&gt; that use further nested classes (think some kind of behaviour and different <br />
&gt; drivers/plugins for example).<br />
<br />
&gt; so while it's true that more nested classes usually extend the less nested <br />
&gt; ones it also common for more generic code to use it's namespace descendants. <br />
&gt; in sutch condition possibility to use just the remaining namespace part is a <br />
&gt; big help and i'd say it's usage would be more comon than single &quot;extends&quot; at <br />
&gt; class definition where you're obligated to supply FQN [1].<br />
<br />
The more generic code (i.e. application code) is located usually in its own namespace, so it must use FQN. FQN with leading backslash.<br />
<br />
DG.<br />
<br />
<br />
-- <br />
PHP Internals - PHP Runtime Development Mailing List<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>David Grudl</dc:creator>
            <category>php-internals</category>
            <pubDate>Mon, 17 Nov 2008 11:55:01 +0100</pubDate>
        </item>
    </channel>
</rss>
