Re: [VOTE] Weak References

From: Date: Wed, 03 Aug 2011 14:35:28 +0000
Subject: Re: [VOTE] Weak References
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Em Wed, 03 Aug 2011 15:29:20 +0100, Etienne Kneuss <[email protected]> escreveu:

Hi, http://pecl.php.net/package/Weakref has been created, and the standalone code should compile fine (I checked for 5_3 only but everything should be smooth for 5_4/trunk) The next planned addition is a StrongRef class, following the exact same interface as WeakRef only that it is always valid and get() always return the ref. The reason for it is that code can switch between the two transparently.
Wouldn't it be better to have both classes implement a common interface then? -- Gustavo Lopes

Thread (69 messages)

« previous php.internals (#54315) next »