Re: Constant Parameters

From: Date: Fri, 02 Mar 2007 19:22:05 +0000
Subject: Re: Constant Parameters
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-28204@lists.php.net to get a copy of this message
Jakob Buchgraber wrote:
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
Hmm, can you give me a better example of how that would be used? I don't see the use in this short example. -- Brian Moon ------------- http://dealnews.com/ It's good to be cheap =)

« previous php.internals (#28204) next »