Re: Remove $this from incompatible context

From: Date: Mon, 16 Feb 2015 05:14:20 +0000
Subject: Re: Remove $this from incompatible context
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-82771@lists.php.net to get a copy of this message
Hi! > Agreed. Personally, I'm a great fan of symettry, so part of me would > prefer to introduce a keyword for when you *can't* call a method > statically, e.g. "instance function foo() { ... }". But I guess instance This would be another form of saying "foo() method uses $this", but if that's true then once it uses $this you'd get the error anyway, so not much changes from adding "instance". -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#82771) next »