I would like (for code cleanliness purposes) to make 'new' return a reference to an already created object under certain circumstances without using a factory, is it possible?
Thanx
"Under certain circumatances" ? ...
If it's only under certain circumstances that you want a reference versus a copy versus an actual new object... well then why not use factory methods?
Or perhaps you meant something like a "Singleton": http://phppatterns.com/index.php/article/articleview/6/1/1/
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php