Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19499 invoked from network); 22 Feb 2012 05:14:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2012 05:14:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:58208] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/10-16342-BB9744F4 for ; Wed, 22 Feb 2012 00:14:35 -0500 Received: by vbbfn1 with SMTP id fn1so5677816vbb.29 for ; Tue, 21 Feb 2012 21:14:32 -0800 (PST) Received-SPF: pass (google.com: domain of laruence@gmail.com designates 10.220.209.200 as permitted sender) client-ip=10.220.209.200; Authentication-Results: mr.google.com; spf=pass (google.com: domain of laruence@gmail.com designates 10.220.209.200 as permitted sender) smtp.mail=laruence@gmail.com; dkim=pass header.i=laruence@gmail.com Received: from mr.google.com ([10.220.209.200]) by 10.220.209.200 with SMTP id gh8mr4675277vcb.55.1329887672363 (num_hops = 1); Tue, 21 Feb 2012 21:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=82Okk17eTsnDd2wlLrvF2hvIqTcrH805hFQHeNuzRWg=; b=a9EvDo93vnZLljrGix5IYCSQFySt8OTG1Q9vvzg3QhZWizOVgZSeSIysrih0pkZvsQ TrNmeRgmx5TtuvGUfkUnN994ufL8GjuPx/aDZgfHaHL6fJ8GJtk1np4vh8EpkYnHIk6o xYbONjlth/mjTeq1GB79/FYCyJoX70EL93PmA= Received: by 10.220.209.200 with SMTP id gh8mr3802921vcb.55.1329887672163; Tue, 21 Feb 2012 21:14:32 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.178.130 with HTTP; Tue, 21 Feb 2012 21:14:12 -0800 (PST) In-Reply-To: References: Date: Wed, 22 Feb 2012 13:14:12 +0800 X-Google-Sender-Auth: LREcO2bUd3KVpEgFMIt7eNd4hAQ Message-ID: To: Samuel Deal Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: laruence@php.net (Laruence) On Wed, Feb 22, 2012 at 12:45 PM, Samuel Deal wrote= : > Hi all, > > I really missed enums in PHP, Why? we have class constant. thanks > So after reading I tryed to synthetise the various views. > > You can find a draft here : > https://github.com/SamNrique/php-src/wiki/RFC-draft > (I can't write on the wiki, and perhaps it's better to finish the > discussion first) > > There's an implementation with this draft. > I'd love to have feedbacks because it's my first php-core hack. > > Thanks > -- > Samuel D=C3=A9al > samuel.deal@gmail.com --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/