Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27409 invoked from network); 9 Jan 2011 16:24:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2011 16:24:02 -0000 Authentication-Results: pb1.pair.com header.from=php@stefan-marr.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@stefan-marr.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain stefan-marr.de from 81.20.134.149 cause and error) X-PHP-List-Original-Sender: php@stefan-marr.de X-Host-Fingerprint: 81.20.134.149 vps-1012701-4512.united-hoster.de Received: from [81.20.134.149] ([81.20.134.149:33544] helo=vps-1012701-4512.united-hoster.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/80-22646-F11E92D4 for ; Sun, 09 Jan 2011 11:24:00 -0500 Received: from 94-224-217-64.access.telenet.be ([94.224.217.64] helo=[192.168.0.13]) by vps-1012701-4512.united-hoster.de with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Pby3b-0008UL-FZ; Sun, 09 Jan 2011 17:23:52 +0100 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <1294324392.23827.7.camel@guybrush> Date: Sun, 9 Jan 2011 17:23:40 +0100 Cc: Jonathan Bond-Caron , larry@garfieldtech.com, internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <1202789F-2BA7-4514-85C4-54A36C7A33DF@stefan-marr.de> References: <89C52156-CF92-4DDB-8BA4-4ABF6883512C@stefan-marr.de> <201012132027.59678.larry@garfieldtech.com> <76C593EE-BCCA-4BBD-B625-B6AE9340B20C@stefan-marr.de> <73.1D.35939.D413E0D4@pb1.pair.com> <8F.32.11788.5FF5F0D4@pb1.pair.com> <4D0F7E99.8050705@garfieldtech.com> <764A364B-173B-401B-83FA-A61D45BE99CB@stefan-marr.de> <002d01cba1ee$7671d0d0$63557270$@com> <1294324392.23827.7.camel@guybrush> To: =?iso-8859-1?Q?Johannes_Schl=FCter?= X-Mailer: Apple Mail (2.1082) Subject: Re: [PHP-DEV] Traits and Properties From: php@stefan-marr.de (Stefan Marr) On 06 Jan 2011, at 15:33, Johannes Schl=FCter wrote: > On Thu, 2011-01-06 at 14:38 +0100, Stefan Marr wrote: >>=20 >> On of those things is that you actually use ReflectionClass to = reflect >> on a trait. >> That is really an implementation detail, and should be changed to not >> confuse anyone on a conceptional level. We should not expose that = kind >> of engine/implementation detail. >=20 > This is the same with interfaces. What does class_exists('some_trait') > do? - I assume that returns true too. It does return false for interfaces, that should be consistent and = return false for traits, too. Best regards Stefan --=20 Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525