On Fri, 14 Mar 2003, Andi Gutmans wrote:
> Hmm. I thought introspection is reflection. It seems I misunderstood.

I think that introspection is a superset of reflection.
> Are you sure it's worth bloating the engine to hold this extra information?

It is possible that an extension or a PEAR class could parse through the
file and extract the doc comments, but since the engine is already doing
the scanning/parsing, I thought it might be very convenient to use it.
Yes, the structure will need to have extra fields, but how much bloat
are we talking about? And if the reflection is to be good, it _will_
need additional information from the engine, such as the function
parameter names, class type hints, etc - all this needs to be stored
somewhere and it can't be an extension since it can't hook into the
scanning/compilation process.

If you don't like this approach, I am open to ideas.

-Andrei                                       http://www.gravitonic.com/

"The time from now until the completion
 of the project tends to become constant." -- Douglas Hartree

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

Reply via email to