Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17922 invoked by uid 1010); 2 Mar 2007 19:44:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17907 invoked from network); 2 Mar 2007 19:44:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2007 19:44:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=marco.kaiser@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marco.kaiser@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: marco.kaiser@gmail.com X-Host-Fingerprint: 66.249.92.173 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.173] ([66.249.92.173:57761] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/BF-04700-7BE78E54 for ; Fri, 02 Mar 2007 14:44:55 -0500 Received: by ug-out-1314.google.com with SMTP id o4so805044uge for ; Fri, 02 Mar 2007 11:44:52 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gfkxFJrw2bfUrZhfi3USo4fXp60psmf4rRGim4qlKAhsHybn6Jdnn9nZF02ZYilelqvKPDUAnXUI7pVQeBVDwO73ZxzeuL3sKnVroKi8H22BUlKMfWz0HRW2D2ylTPLfKuZcahAwKPz9dgkcH7f2wXqdN6XhJXtaJ0nON4ZKwLw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=rlWdGv8enGhGz6eL9BfbUMkYmiOWb6/BX9OoPojGw1KUERX+yOmGuQA69+/cXxWVQs4pIc3TLm+uWDZNPJizcMcNqfzH4DG4XpB8+UP+iq7g4/D4WQtRWrqzhVqRPKFJByQK+PAUIWPMWf3UesQYuK5rPnfZh1T2OvrMooCiQ/M= Received: by 10.66.221.6 with SMTP id t6mr3802056ugg.1172864692922; Fri, 02 Mar 2007 11:44:52 -0800 (PST) Received: from ?192.168.0.84? ( [217.65.18.107]) by mx.google.com with ESMTP id 53sm3379785ugn.2007.03.02.11.44.51; Fri, 02 Mar 2007 11:44:52 -0800 (PST) Message-ID: <45E87EA0.8020602@gmail.com> Date: Fri, 02 Mar 2007 20:44:32 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Jakob Buchgraber CC: internals@lists.php.net References: <4B.08.04700.2DB68E54@pb1.pair.com> In-Reply-To: <4B.08.04700.2DB68E54@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constant Parameters From: marco.kaiser@gmail.com (Marco Kaiser) Hi Jakob, > 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 > This makes absolute no sense, why you want this? -- Marco