Re: dynamic object instances

From: Date: Thu, 11 Aug 2005 08:05:05 +0000
Subject: Re: dynamic object instances
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-220408@lists.php.net to get a copy of this message
Eli schrieb:
You're right that using eval() slows.. But using the _init() function as you suggested is actually tricking in a way you move the constructor params to another function, but the initialization params should be sent to the constructor! I guess that it would be better if PHP will add a possibility to construct a dynamic class with variant number of params... ;-) If your read my original posting then you would know, that I expicitly asked for a non-eval solution. Because we solved it with an eval too. But I would like to watch for a solution without an eval.
thanks anyway Thomas

« previous php.general (#220408) next »