Re: PHP and #if

From: Date: Fri, 14 Mar 2008 18:42:40 +0000
Subject: Re: PHP and #if
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-271605@lists.php.net to get a copy of this message
On 14 Mar 2008, at 18:34, Eric Gorr wrote:
If you are talking about simply commenting code out, yes, I am aware of this...however, the #if technique is far more capable in certain situations. There are reasons why C, etc. has included the ability to comment out lines of code and also provide #if's. But based on your reply, I have to assume that PHP does not current provide such a technique...as I suspected.
PHP has no built-in macro language. I started to write a pre-processor a while ago but didn't get very far before the real world forced me to shelve it, but such a beast is pretty simple to write but obviously is not evaluated at runtime. IIRC there was a project a while ago to build a macro language into PHP but I have no idea how far it got. I think it was being done under the GSoC initiative. Google should have more on that. -Stut -- http://stut.net/

« previous php.general (#271605) next »