RE: [PHP-DEV] Instantiation of class objects
| From: | Chris Newbill | Date: | Fri, 22 Dec 2000 15:58:25 +0000 |
| Subject: | RE: [PHP-DEV] Instantiation of class objects | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42125@lists.php.net to get a copy of this message | ||
Probably the best way to do it though would be allowing objects to be
serialized...with their methods =)...so then I can just save them in my
current session and recall them the next time around.
I for one would love to have this!
Chris
-----Original Message-----
From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net]
Sent: Friday, December 22, 2000 7:37 AM
To: Szii
Cc: PHP-DEV
Subject: Re: [PHP-DEV] Instantiation of class objects
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>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net