Stanislav Malyshev wrote:
By "real world" I don't mean "you write up", I mean "someone really needs it". You are defining language practice now. I think it's a bad practice to

I found the example a bad one too but the more I think about it the more I believe that the language shouldn't stop you from designing your classes in a way that you call the method which happens also to be a constructor later again. And class methods (e.g. Log::log) are another example where magic gets in the way.


The constructor should be nothing but a method which is called when 'new' is invoked IMHO.

Hm. Do you have some example of such code? Except for object cloning

Uh oh, don't even mention object cloning or I'll start my sermon about how badly PHP4 needs ->__clone() again (-:C


- Chris

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to