Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11491 invoked from network); 9 May 2012 21:56:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2012 21:56:04 -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.42 as permitted sender) X-PHP-List-Original-Sender: seva.lapsha@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:39778] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/16-55274-3F7EAAF4 for ; Wed, 09 May 2012 17:56:03 -0400 Received: by yhfq11 with SMTP id q11so935036yhf.29 for ; Wed, 09 May 2012 14:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=40ZlHh5dsky2Fg/aeTW6ozS9wkL+bcSS+qcOJDCXixU=; b=MheaxXHQEqulP6rlZoyU0okkfqEPqQIbdAKmBr0Zo/33NdfiPebcYIlrBWmU5bpIps 7OBKdUqtfvP+449g+zuHMgWx5zSLsh+2czf1zOrcS4l8R9LQC9ySsXAK6vvYzKexH4K5 FNQRyk1yVA0gdcLU8g0WYJ7tl6IEL9uCr7uvSPlD7b16Q90keeQyUp6zBCnzsFKZr+Kr 0MFDwNsXtV/htfUtoMtxi7cogBYpbGlbQCtZhKisCYMuYv4+ZbOFGhAK+DZiMHhsAi2K riTqdoIUnpuNOvl0wzH1IvoQFMGUnoV9YT3ZttmbtzNbSJ9hsv87rSzHCSp1TKLZFVrQ z0zg== MIME-Version: 1.0 Received: by 10.43.49.3 with SMTP id uy3mr1048365icb.2.1336600560296; Wed, 09 May 2012 14:56:00 -0700 (PDT) Received: by 10.231.241.199 with HTTP; Wed, 9 May 2012 14:56:00 -0700 (PDT) Date: Wed, 9 May 2012 17:56:00 -0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=bcaec529a09f9a61b704bfa191c7 Subject: [RFC] Custom Casting From: seva.lapsha@gmail.com (Seva Lapsha) --bcaec529a09f9a61b704bfa191c7 Content-Type: text/plain; charset=ISO-8859-1 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 > > --bcaec529a09f9a61b704bfa191c7--