2011/8/16 Johannes Schlüter <johan...@schlueters.de>:
> On Tue, 2011-08-16 at 13:44 +0200, Hannes Magnusson wrote:
>> "use foobar;" has no effect, at all, and you will get an warning
>> message telling you that.
> It has an effect. In
> namespace strict { class C {} }
> namespace foo { use strict; new strict\C; }
> It saves one character of typing. Without the use strict I'd have to
> write \strict\C. If this is useful might be questioned but it is valid.

And this code snippet will continue to work just fine, as it didn't
trigger a warning before.

When the use statement has no effect you get a warning "The use
statement with non-compound name '%s' has no effect", except now - we
check if you have perl syndrome and let you know, forcefully.


PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to