Re: [RFC] UString

From: Date: Tue, 21 Oct 2014 09:14:35 +0000
Subject: Re: [RFC] UString
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-78184@lists.php.net to get a copy of this message
On 21 October 2014 09:01, Joe Watkins <pthreads@pthreads.org> wrote: > > ZEND_CONCAT is overloaded, as well as read_dimension and cast (to > string) handlers. This seems to cover everything, unless I missed > something ? > ZEND_CONCAT and ZEND_ASSIGN_CONCAT were my primary concerns, I didn't see any mention of these in the RFC which is why I brought it up (maybe it should be documented there). May not be desirable at all, but obviously with ordinary strings we can do int + "str containing int", and if the UString object contains an int then int + (string)ustring will still achieve that. My thought was to make the remaining operators that don't make sense on an object implicitly cast to string before the operation takes place. Feel free to "do not want". :)

« previous php.internals (#78184) next »