On Tue, Jun 30, 2015 at 10:36 PM, Joe Watkins <pthre...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php