Hanoi, On Sat, 7 Apr 2001, Pearu Peterson wrote:
Now, with this new print() standard, nothing has changed. I still have to re-implement print() function in the same way again:(. But looking forward to future where you might support output types such as LaTeX, MathML, etc. that could be useful also from Python, my approach doesn't feel right. And on the other hand, you hardly want to support Python (or any other third party language) output formats.
Why not? Isn't this exactly what class print_context and decendants are supposed to be good for provided we get the right patches for inclusion into the GiNaC::*::print() methods? Regards -richy. -- Richard Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>