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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php