Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26676 invoked by uid 1010); 25 Nov 2005 21:57:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26661 invoked from network); 25 Nov 2005 21:57:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2005 21:57:36 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:55390] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7B/7D-56276-0D887834 for ; Fri, 25 Nov 2005 16:57:36 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id jAPLvUgY028195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 Nov 2005 13:57:31 -0800 Message-ID: <438788CB.6000704@lerdorf.com> Date: Fri, 25 Nov 2005 13:57:31 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051025) MIME-Version: 1.0 To: Jessie Hernandez CC: internals@lists.php.net References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <90.0E.56276.6D207834@pb1.pair.com> <200511251419.56809.pookey@pookey.co.uk> <57.B8.56276.65B27834@pb1.pair.com> <73998811.20051125204046@marcus-boerger.de> <438782C6.80008@gmail.com> <43878626.5060300@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: rasmus@lerdorf.com (Rasmus Lerdorf) Jessie Hernandez wrote: > Hello Rasmus, > > Rasmus Lerdorf wrote: >> Jessie Hernandez wrote: >>> >>> Why is "\" the only available character? Right now my patch is using >>> ":" and it's working great (though against 5.1). Is ":" used in some >>> other way in PHP 6? >> >> >> It clashes with the : in the ternary. >> >> -Rasmus > > Not in my patch! I just tested the example below with my patch, and it > works *PERFECTLY*: > > namespace ns > { > class test1 > { > public static function getMessage() > { > return 'ternary test (left side)!'; > } > } > > class test2 > { > public static function getMessage() > { > return 'ternary test (right side)!'; > } > } > } > > echo ( ( time() % 2 ) == 0 ? ns:test1::getMessage() : > ns:test2::getMessage() ); > ?> Are you saying this works? namespace ns { function foo() { } } function foo() {} echo true ? ns:foo():foo(); Looks very confusing to me. -Rasmus