I should add that the tests I did was with ast evaluation, not dynamic compilation. I can't test dynamic compilation here at the moment (no C compiler where I am) but the generated code looks fine. Maybe just a problem with the AST evaluation? Chris. -- Chris Double chris.double@double.co.nz