On Thu, 19 Aug 2004, Hartmut Holzgraefe wrote:

> 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.
>
> How that? C doesn't have dynamic goto targets either
> but still its used for parsing lot ...

That depends on what you consider C.

Try compiling this with your favourite C compiler:

#include <stdio.h>

int main(void) {
  static void *ptr[2]={&&foo, &&bar};

  goto *ptr[1];

  foo:
  printf("foo\n");
  return 0;

  bar:
  printf("bar\n");
  return 0;
}

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

Reply via email to