Hi! > Has anyone else wanted this functionality? Has anyone else thought of ideas > of addressing this (or come to the conclusion it really isn't safely > addressable without causing disproportionate amounts of grief?)
Yes, there were people that wanted this functionality, but since having the same thing ($foo->bar()) mean two different things (call method named "foo" vs. "fetch property named foo and then call it if it's callable") is not a good idea this wasn't done. In some languages, the options above are the same - i.e. methods and properties are actually the same thing - but in PHP is is not so, and can be made so without some BC-breaking changes. -- 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