Hello ! > The issue with self not being available was that I was calling yyparse() > and hadn't configured bison so that yyparse was given any parameters, > hence self wasn't available in the parser code. I didn't destroy it just > couldn't reach it. Now I have taken a different aproach. yyparse is > called with a parameter and instead of passing the callback instance as > a parameter to initialize I have made it a class/module method instead, > since the only task for my extension is to delegate the parsing routine. Yes, bison and flex always give great fun. Just out of curiosity, what are you parsing ? > Thanks again, though, for opening my eyes. There's been a long time > since I wrote some C code and I didn't think about this. I did bump into this not so long ago... I'd rather you didn't ;-) ! Vince