Re: Call closure stored as object property directly without use of temporary variable

From: Date: Sun, 09 Dec 2012 08:30:27 +0000
Subject: Re: Call closure stored as object property directly without use of temporary variable
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-64206@lists.php.net to get a copy of this message
Hi! > As it stands now, calling a method can mean two different things: > calling the method directly, or handling the method invocation within > __call(). Checking for a method first, a closure instance next, and then > falling through to __call() seems like it would have been a reasonable > approach. This is the same thing. However, what you mean by "closure instance" is actually a property access, which is not the same thing as method call. Think about what happens if you have both __call and __get (or object implementing both handlers). -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#64206) next »