On Thu, Sep 25, 2014 at 12:22 PM, Florian Margaine <flor...@margaine.com> wrote:
> Hi,
>
> Joe Watkins wrote (for fun) a new operator, `addressof`. Code is here:
> https://github.com/krakjoe/php-src/compare/addressof
>
> I think it makes more sense than a new method on all objects. You could use
> it for any kind of value: scalar, resource, object. Building an array of
> sockets, for example, would be very easy with such an operator.
>
> It would also give better tools to deal with situations such as:
>
> $test = 1;
> $test2 &= $test;
>
> I'm willing to write an RFC if necessary to include it.
>
> Thoughts?
´
Not sure what is the relation with resource as objects but I am not
sure either about exposing the internal position to the userland. That
will pretty much forces to keep it this way forever if we expose it
for anything but debugging.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org

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

Reply via email to