Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60572 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60009 invoked from network); 14 May 2012 11:17:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2012 11:17:44 -0000 Authentication-Results: pb1.pair.com header.from=seva.lapsha@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=seva.lapsha@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: seva.lapsha@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:39222] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/A2-44671-7D9E0BF4 for ; Mon, 14 May 2012 07:17:43 -0400 Received: by yenm2 with SMTP id m2so3228687yen.29 for ; Mon, 14 May 2012 04:17:40 -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=MGEA5PldWozeQsdEuNkB9o+DfNWia+MVTFha/W+azmI=; b=MGagh2wW7TsgnXafRF7212nrf5w6Lwq84I3YHuoWrQRkUTWIybJQT8A8ymXh7D6Z5y MQFClvn64pLRzYrA5WtDeJoMKHYOOKqaUUUqKGP3qMfCCFy3hufOc/nJ1aH7RJo983mo YSydDx80odgOIyuniOfNf7xF+U9zi36WhYBizn8/Tdv81IGl8AFysFvbjwlqAnBXRZ70 rlVwTrEewJPm+mYTg38dtOsYy3NRfsP8aDFwG+ssScsIW/4OuEwEQvYVkxwmNm+fYE98 iZpjgB+52PkuEixosTJklQlXAghoTFhkgLxY1vIfkrPXEWvGV9zwVpobx8EokS0c3pBa QZcQ== MIME-Version: 1.0 Received: by 10.50.181.232 with SMTP id dz8mr993977igc.36.1336994260166; Mon, 14 May 2012 04:17:40 -0700 (PDT) Received: by 10.231.241.199 with HTTP; Mon, 14 May 2012 04:17:40 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE48555C0420D@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE48555C0420D@MBX202.domain.local> Date: Mon, 14 May 2012 07:17:40 -0400 Message-ID: To: Clint Priest Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=14dae934064bf1a7bd04bffd3bac Subject: Re: [PHP-DEV] [RFC] Custom Casting From: seva.lapsha@gmail.com (Seva Lapsha) --14dae934064bf1a7bd04bffd3bac Content-Type: text/plain; charset=ISO-8859-1 Sorry, I comprehend neither the cause nor the effect in your argument statement. Can you please elaborate? On Sun, May 13, 2012 at 7:27 PM, Clint Priest wrote: > 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 why the __toInt(), __toArray(), etc, so that the language can > request the type 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 > > > > Hello All, > > > > Please be kind to review and comment my proposal for custom casting in > PHP (or let me know if a similar proposal was already > > discussed). > > > > http://pastebin.com/sPb0i8U6 > > > > IMHO, it's more simple and on the other hand more flexible than proposed > in: > > > > https://wiki.php.net/rfc/object_cast_to_types > > https://wiki.php.net/rfc/class_casting_to_scalar > > > > Thank you in advance, > > Seva Lapsha > > > > On Wed, Apr 11, 2012 at 6:14 PM, Yasuo Ohgaki > wrote: > > > > > 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 > glance. > > > > > > 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 > > > > > > > --14dae934064bf1a7bd04bffd3bac--