Re: constructors in PHP

From: Date: Mon, 11 Jul 2005 16:53:32 +0000
Subject: Re: constructors in PHP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-218457@lists.php.net to get a copy of this message
Burhan Khalid wrote:
Alessandro Rosa wrote:
Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ?
As far as I know, its not a security issue, but a structure/design issue.
The issue is that in php you can't definitely say what type a variable is , whereas in c++ you can say this variable is a string, this one a int, ….

« previous php.general (#218457) next »