On Thu, 2004-08-19 at 00:10, Alan Knowles wrote: > > > - compile time hooking (no dynamic goto targets) > > > > > That kind of makes them useless for writing parsers, which was one of > the justifications of them.
Hmmm you're right. I forgot that in C when doing parsers it's commonplace to map the label addresses to some lookup indexes and then jump to the address with goto. Although it's also quite common to do parsers without dynamic jumping, but yeah that's a dandy handy feature :) At this point I'd like to retract my agreement with static goto targets. Now I wonder if it is possible to have the compiler recognize a static jump from a dynamic jump and do the hooking accordingly to maximize efficiency in the static case? Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php