> Andrey Hristov <[EMAIL PROTECTED]> writes:
> There are absolutely ways to do this purely at the application level. 
It just
> seems that it'd be a really clean, easy to program, easy to understand
methodology to pass the key value to the request for a new instance, and
get
> back either a new instance, or a previously existing one with that key
value.
I don't think it's "really clean" to not return a *new* instance with a
*new* call. I'm not sure what kind of advantage it gives you over a
private constructor and a static getInstance($n) function.

Cheers,
Michael

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

Reply via email to