Just to say that I have had some success - recasting the "this" pointer
does work, but it's extremely unsatisfactory - not to mention error prone.

For anyone that needs to do it, though, heres a nice macro for your
legacy flex code:

#define yylval ((lexer_class*)this)->val_ref()

where

value_t& lexer_class::val_ref()
{
    return private_value_rep;
}

Or I thought it was nice, anyway!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex

Reply via email to