Hi Rowan, On Mon, Mar 2, 2015 at 6:32 AM, Rowan Collins <rowan.coll...@gmail.com> wrote:
> On 01/03/2015 21:26, Yasuo Ohgaki wrote: > >> Although it seems current code does not have code like GMP. I'm sure >> we'll have this before release. i.e. >> >> $new = $some_ustring . 'abc'; // $new is UString object >> >> To implement feature like this, it cannot be PECL. >> > > Why not? I would have thought any extension can hook into the operator > overloading API that GMP uses, just as they can hook into other object > behaviours. > > Is there some difference between how "bundled" and PECL extensions are > loaded that would prevent this? OK. I missed that GMP improvement includes generic operator overloading. If current implementation is good enough for UString, it could be PECL. Or add missing parts in core to make UString PECL. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net