Constructor object instance dereferentiation

From: Date: Sun, 22 May 2011 04:18:18 +0000
Subject: Constructor object instance dereferentiation
Groups: php.internals 
Request: Send a blank email to internals+get-52498@lists.php.net to get a copy of this message
Hi, I was wondering if object dereferentiation after constructor call is something that has been discussed already. This is, being able to do something like: new MyClass()->setSomething(); Instead of: $var = new MyClass(); $var->setSomething(); Regards, David Vega

« previous php.internals (#52498) next »