At 18:51 02/04/2003, Andrei Zmievski wrote:
On Wed, 02 Apr 2003, Zeev Suraski wrote:
> I don't really like the idea of cluttering the parser with additional rules
> if it's not really necessary. I think that the idea proposed by Alan is
> actually the best way to go (keep the last comment in a global, use and
> reset it in the next relevant declaration implementation). IIRC, that's
> also the way the Zend Development Environment does the job :)


What about this case:

        $a = 5;
        /**
        * set $b to 3
        */
        $b = 3;

        class Bar {
        }

We don't want to apply this doc comment to class Bar, so it needs to be
reset on every statement, basically. Isn't that right?

Probably, yes. I think Alan mentioned it.


Zeev


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to