Re: [RFC] UString
| From: | Sara Golemon | Date: | Wed, 01 Jul 2015 18:06:33 +0000 |
| Subject: | Re: [RFC] UString | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86987@lists.php.net to get a copy of this message | ||
On Tue, Jun 30, 2015 at 10:36 PM, Joe Watkins <pthreads@pthreads.org> 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