Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28966 invoked by uid 1010); 25 Nov 2005 22:01:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28932 invoked from network); 25 Nov 2005 22:01:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2005 22:01:27 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:49678] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D6/BD-56276-6B987834 for ; Fri, 25 Nov 2005 17:01:26 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 76E33610284; Fri, 25 Nov 2005 23:07:36 +0100 (CET) Date: Fri, 25 Nov 2005 22:59:26 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <512771162.20051125225926@marcus-boerger.de> To: Jessie Hernandez Cc: internals@lists.php.net In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: helly@php.net (Marcus Boerger) Hello Jessie, that's only one case,go with consts. now try $x = $y ? foo:bar:baz:stupid; now what? best regards marcus Friday, November 25, 2005, 10:52:51 PM, you 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() ); ?>> > Regards, > Jessie Best regards, Marcus