Re: Instantiation of class objects
| From: | Ignacio Vazquez-Abrams | Date: | Fri, 22 Dec 2000 14:36:54 +0000 |
| Subject: | Re: Instantiation of class objects | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42123@lists.php.net to get a copy of this message | ||
On Thu, 21 Dec 2000, Szii wrote:
> One of the main ideas of objects (obviously) is reuse.
>
Well, reuse in OOP refers to code reuse, not to memory or instance reuse :)
Although some sort of caching mechanism would probably be useful, it would
end up using a LOT of memory as there is no way for PHP to know ahead of time
which objects will be reused in the future.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>