Re: comment followed by ?> fails to parse
| From: | Thalis A. Kalfigopoulos | Date: | Wed, 29 May 2002 14:27:03 +0000 |
| Subject: | Re: comment followed by ?> fails to parse | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99746@lists.php.net to get a copy of this message | ||
On Wed, 29 May 2002, Jason Wong wrote:
> On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote:
> > I disagree. I use // because then when I need to take out a chunk of code
> > (the requirements for the programs change faster than I can keep up with
> > them!!) I can do /* unnecessary code */ and it doesn't end prematurely.
>
> Yes this hightlights another shortcoming of PHP in that it cannot have nested
> multi-line comments.
This is not a shortcoming. This is an issue of the scanner of the compiler. It is not possible to
remember the nesting level of the comments because of the nature of regular expressions: they lack
memory.
cheers,
thalis
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> For my birthday I got a humidifier and a de-humidifier... I put them in
> the same room and let them fight it out.
> -- Steven Wright
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>