Re: [VOTE] Weak References

From: Date: Wed, 03 Aug 2011 14:43:26 +0000
Subject: Re: [VOTE] Weak References
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi,

On Wed, Aug 3, 2011 at 16:35, Gustavo Lopes <[email protected]> wrote:
> 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?

Sure

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



-- 
Etienne Kneuss
http://www.colder.ch


Thread (69 messages)

« previous php.internals (#54316) next »