Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76114 invoked by uid 1010); 2 Mar 2007 18:30:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76099 invoked from network); 2 Mar 2007 18:30:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2007 18:30:48 -0000 Received: from [127.0.0.1] ([127.0.0.1:28986]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 17/B8-04700-85D68E54 for ; Fri, 02 Mar 2007 13:30:48 -0500 X-Host-Fingerprint: 193.171.131.245 teacheradsl245.eduhi.at Received: from [193.171.131.245] ([193.171.131.245:28832] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/08-04700-2DB68E54 for ; Fri, 02 Mar 2007 13:24:18 -0500 Message-ID: <4B.08.04700.2DB68E54@pb1.pair.com> To: internals@lists.php.net Date: Fri, 02 Mar 2007 19:25:50 +0100 User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 193.171.131.245 Subject: Constant Parameters From: jakob.buchgraber@gmail.com (Jakob Buchgraber) Hello! It would be nice if in PHP 6 using constant parameters for functions and methods would be possible. This feature is e.g. available in Java. function doSth (const A) { if (defined ("A")) echo "A is a constant"; } doSth ("foo"); Cheers, Jay