Re: Float comparison
| From: | Pierre Joye | Date: | Sat, 03 May 2008 09:06:45 +0000 |
| Subject: | Re: Float comparison | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37424@lists.php.net to get a copy of this message | ||
On Sat, May 3, 2008 at 10:31 AM, Philip Olson <philip@roshambo.org> wrote:
>
> On 2 May 2008, at 18:07, Stanislav Malyshev wrote:
>
> > Hi!
> >
> >
> > > Is it not possible to overload operators?
> > > Though this would probably even more work to do.
> > >
> >
> > Well, overloading operators in theory would be less work to do,
> technically, since extension points would be easier to identify. However,
> I'm not sure we'd want to open that can of worms :)
> >
>
> Overloading operators in PHP sounds crazy... so it's possible. :)
>
> http://pecl.php.net/package/operator
And Johannes also have a patch as proof of concept.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org