Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67231 invoked by uid 1010); 1 Jan 2008 00:02:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67216 invoked from network); 1 Jan 2008 00:02:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2008 00:02:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.50 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.50 viefep32-int.chello.at Solaris 10 (beta) Received: from [62.179.121.50] ([62.179.121.50:45359] helo=viefep32-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/63-43572-E1389774 for ; Mon, 31 Dec 2007 19:02:39 -0500 Received: from genuine.home ([84.112.136.139]) by viefep32-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080101000123.IHUX26521.viefep32-int.chello.at@genuine.home> for ; Tue, 1 Jan 2008 01:01:23 +0100 Received: from chello084112136139.36.11.vie.surfer.at ([84.112.136.139] helo=[192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1J9USg-0001Tf-Ap for internals@lists.php.net; Tue, 01 Jan 2008 00:54:41 +0100 Message-ID: <477982BF.1000700@fischer.name> Date: Tue, 01 Jan 2008 01:01:03 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: internals@lists.php.net References: <476878B4.8000200@gmail.com> <4778E18A.3080605@fischer.name> <47792F73.8030804@php.net> <47796CFB.6070208@fischer.name> In-Reply-To: <47796CFB.6070208@fischer.name> X-Enigmail-Version: 0.95.5 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -26 X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, second time me ... Markus Fischer wrote: > Hi Greg, > > Greg Beaver wrote: >> It is technically possible to fix this, on first glance it would involve >> having the lexer return a T_STRING for any non-whitespace following >> T_INTERFACE or between T_IMPLEMENTS and '{'. It would also need to >> return T_STRING following T_INSTANCEOF. > [...] >> accepted, it's a fair amount of work to patch the lexer and make sure it >> doesn't break crap. > > I'm totally with your here. I can live very well with "Iface" instead. > Just wanted to make sure it's not an oversight on my side. Thanks for > the (gory) details ;) [...] Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts -0.4 BAYES_05 BODY: Bayesian spam probability is 1 to 5% [score: 0.0399] 1.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] Re: Interfaces name "Interface", was: [PHP-DEV] Re: Idea for namespacelookup resolution From: markus@fischer.name (Markus Fischer) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, second time me ... Markus Fischer wrote: > Hi Greg, > > Greg Beaver wrote: >> It is technically possible to fix this, on first glance it would involve >> having the lexer return a T_STRING for any non-whitespace following >> T_INTERFACE or between T_IMPLEMENTS and '{'. It would also need to >> return T_STRING following T_INSTANCEOF. > [...] >> accepted, it's a fair amount of work to patch the lexer and make sure it >> doesn't break crap. > > I'm totally with your here. I can live very well with "Iface" instead. > Just wanted to make sure it's not an oversight on my side. Thanks for > the (gory) details ;) I think one has really get used to this, if you take for granted that you named classes/interface this way in the past. For example, in many projects I use the observer pattern and one of the first observers implemented in almost any project is the Echo-Observer to simply echo the messages. So this doesn't work anymore either. a) You can't make a class Echo and b) you can't create an interface named Echo ... I tried using print but that doesn't work either. I'm either bumping into T_ECHO or T_PRINT. Stdout finally did it. - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHeYK/1nS0RcInK9ARApRiAKC63DhPeLY7i+QwApr/Iv4tyz4ToACgg995 uYHKxO/ToyeKxmqqXnK9RqU= =JARy -----END PGP SIGNATURE-----