Robert,

I briefly looked over your coercion model.

_repr_ This is the easiest way to define how your object prints
       It should take a string representing your object
       I takes one argument, do_latex


I might comment that Axiom uses an output domain that exports functions
for constructing the print representation of its objects. This design
has made it possible for an object to print itself in various ways.

Over time Axiom has implemented many different output forms, such as
script (an IBM internal scripting language), algebra (the default 2D
ascii output), LaTeX, FORTRAN, and most recently MathML, used in the
new Firefox front end.

You might consider a design that allows the end user the option of
specifying the desired output form as decoupled from the object
structure.

Tim Daly
Axiom

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to