Hi! > It's convenient to assign an empty array to a property in this manner. > > private $storage = array(); > > So why not > private $storage = new ArrayObject();
array is a static constant. Objects have complex behavior. So it's better to handle this in ctor. I see no value in splitting ctor into multiple pieces, and debugging such thing would be a nightmare. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php