Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78184 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4303 invoked from network); 21 Oct 2014 09:14:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 09:14:38 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:52314] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/60-02077-EF326445 for ; Tue, 21 Oct 2014 05:14:38 -0400 Received: by mail-wi0-f175.google.com with SMTP id d1so9455756wiv.2 for ; Tue, 21 Oct 2014 02:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=u3xKqXVYBqsYqp+jHLEjWYpD9bM3hOXlEydK34EWZI4=; b=08VU+zXPU/DEK4EjJUt+zV4s66C3hiD4mtceVKsbk2TqejlX922FH1Obyeovnic9wI JBEsPGozUxuRYiIS7TmAHYZlGMqiAG0E2s+3pnUsgzv+qvIUlcQtpdARQyHZILqK8Msx wUuED955/WblnBRXnTI/9azUJfYMp2HsBIrkpJioOCsbTOA2+pue5V3EKqmNptNEeVU3 qDXEq8bE7/H5o8EHaFffRFXI0H00uTpyDSGNbOmsTgdbo3hJOK+biV38v9Es3Zlp0Klp lcRJOI3Ym/IbLJwWqvAUnWzcOAJNjP5J2ojU5gq22k9suv0AW17HPuuqATPYjEZi2qfm QSiQ== MIME-Version: 1.0 X-Received: by 10.194.60.230 with SMTP id k6mr1917452wjr.135.1413882875390; Tue, 21 Oct 2014 02:14:35 -0700 (PDT) Received: by 10.217.55.195 with HTTP; Tue, 21 Oct 2014 02:14:35 -0700 (PDT) In-Reply-To: <1413878515.2624.6.camel@localhost.localdomain> References: <1413875212.2624.3.camel@localhost.localdomain> <1413878515.2624.6.camel@localhost.localdomain> Date: Tue, 21 Oct 2014 10:14:35 +0100 Message-ID: To: Joe Watkins Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] UString From: leight@gmail.com (Leigh) On 21 October 2014 09:01, Joe Watkins 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". :)