Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95390 invoked from network); 13 May 2012 23:27:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2012 23:27:30 -0000 Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 74.115.204.54 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 74.115.204.54 relay-hub202.domainlocalhost.com Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [74.115.204.54] ([74.115.204.54:30433] helo=relay-hub202.domainlocalhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/2A-16338-06340BF4 for ; Sun, 13 May 2012 19:27:29 -0400 Received: from MBX202.domain.local ([169.254.19.147]) by HUB202.domain.local ([192.168.69.2]) with mapi id 14.01.0355.002; Sun, 13 May 2012 19:27:25 -0400 To: Seva Lapsha , "internals@lists.php.net" Thread-Topic: [PHP-DEV] [RFC] Custom Casting Thread-Index: AQHNLi6l17XSqeCCQk+EtGzYZ+WSt5bIY1Vg Date: Sun, 13 May 2012 23:27:25 +0000 Message-ID: <9570D903A3BECE4092E924C2985CE48555C0420D@MBX202.domain.local> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.64.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] [RFC] Custom Casting From: cpriest@zerocue.com (Clint Priest) This has already been covered quite a bit, the problem with your suggestion= is that the compiler needs to determine the type it is cast to, which is w= hy the __toInt(), __toArray(), etc, so that the language can request the ty= pe it needs to cast to. > -----Original Message----- > From: Seva Lapsha [mailto:seva.lapsha@gmail.com] > Sent: Wednesday, May 09, 2012 4:56 PM > To: internals@lists.php.net > Subject: [PHP-DEV] [RFC] Custom Casting >=20 > Hello All, >=20 > Please be kind to review and comment my proposal for custom casting in PH= P (or let me know if a similar proposal was already > discussed). >=20 > http://pastebin.com/sPb0i8U6 >=20 > IMHO, it's more simple and on the other hand more flexible than proposed = in: >=20 > https://wiki.php.net/rfc/object_cast_to_types > https://wiki.php.net/rfc/class_casting_to_scalar >=20 > Thank you in advance, > Seva Lapsha >=20 > On Wed, Apr 11, 2012 at 6:14 PM, Yasuo Ohgaki wrote: >=20 > > Hi all, > > > > I think my RFC confused people on this list due to improper > > descriptions and too much information. Sorry for the confusion. I > > revised the RFC so that most important points can be understood at a gl= ance. > > > > https://wiki.php.net/rfc/nophptags > > > > Please read again if you've read already and give comments. > > Thank you. > > > > -- > > Yasuo Ohgaki > > yohgaki@ohgaki.net > > > > -- > > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, > > visit: http://www.php.net/unsub.php > > > >