Re: [VOTE] Userspace operator overloading

From: Date: Wed, 25 Mar 2020 12:25:32 +0000
Subject: Re: [VOTE] Userspace operator overloading
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-109290@lists.php.net to get a copy of this message
Hi, internals! I want to mention, that all existing internal API of Zend could be accessible via FFI as of PHP7.4. This gives opportunity to implement userspace operator overloading as a simple PHP package. I know, that FFI requires some polishing, but it could become a tool to create interesting extensions via Z-Engine or similar libraries. Just for example, I have a repository https://github.com/lisachenko/native-types which provides an example of userspace operator-overloading for matrices (see __doOperation method implementation at https://github.com/lisachenko/native-types/blob/master/src/Matrix.php#L232-L276 ) Please share you thoughts about this. Best regards, Alexander пн, 23 мар. 2020 г. в 20:58, <jan.h.boehmer@gmx.de>: > Hi internals, > > I have opened voting on > https://wiki.php.net/rfc/userspace_operator_overloading, which > allows > users > to overload operators in their own classes. > > Voting closes on 2020-04-06. > > Regards, > Jan Böhmer > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#109290) next »