Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21896 invoked from network); 1 Jul 2015 18:06:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2015 18:06:41 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:34442] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/00-20693-D2C24955 for ; Wed, 01 Jul 2015 14:06:38 -0400 Received: by lbnk3 with SMTP id k3so17835395lbn.1 for ; Wed, 01 Jul 2015 11:06:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Rj9BWIHA/rkWu7UDC8EI/q3Jy6X8cZq6oZ+Dz4E97AE=; b=KAwJPRDDmHgpOsLdNDAj2XDjDzNsnLVZtYT0Kz4ZyxwJCjBHyGrt2E2T/NiuXbKJyA uSJU6uJupzyJqbp+uNSlHsXjFG8nQIHVSlyHv7n2bsK/0g+r/zp+IHaFAmgtpL2E8w2+ QElUDbVE94vMY3OWKXsqMOMEJ+RrRUrkVd/Vn3r67skZZCKqkKjSfunQ/P1sijXT0Wec QUrIOq9zVMs+WRFgYPZ1ApRiKidt9zVrjEnhgcBScUihFfa/4x0ws751C7eOKxbZ2pf/ VpA3pqV6e1HDfpc9z2PXAYKoNRcQTGpkNvYu1xcTZ1EO0yxHKDxN2mbRL6ZIL6fvFHVr 4HEQ== X-Gm-Message-State: ALoCoQm/Z6eCjOpQL2E8g9qxfUpIhBVnDhP89KTlDt2IJFI9KLd1FeQgPb3gs6gQqp4U1vwhWCA6 MIME-Version: 1.0 X-Received: by 10.152.6.132 with SMTP id b4mr23628897laa.53.1435773993368; Wed, 01 Jul 2015 11:06:33 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.11.134 with HTTP; Wed, 1 Jul 2015 11:06:33 -0700 (PDT) X-Originating-IP: [2620:10d:c081:1110:8000::2179] In-Reply-To: References: <1413875212.2624.3.camel@localhost.localdomain> Date: Wed, 1 Jul 2015 11:06:33 -0700 X-Google-Sender-Auth: dKGPfL2u7ANDk2iQb_EuFxzLiG0 Message-ID: To: Joe Watkins Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] UString From: pollita@php.net (Sara Golemon) On Tue, Jun 30, 2015 at 10:36 PM, Joe Watkins wrote: > Another possible issue is engine integration: > > $string = (UString) $someString; > $string = (UString) "someString"; > That sounds as a cool idea to discuss as a completely separate, unrelated RFC, and not specific to UString. e.g. $obj = (ClassName)$arg; /* turns into */ $obj = new ClassName($arg); So you could use casting with any class which supports single-argument constructors. But again, orthogonal to this RFC. -Sara