On 4/9/08, van Nek <van.nek at arcor.de> wrote:
> So I propose to cut $sprint out of plot.lisp and put it
> into the stringproc package. Then it can easily be fixed
> by using stringproc/$printf. ($sprint and $printf can be
> autoloaded at the same time.)
I don't know if it's really worth the trouble to fix up sprint.
It looks like sprint was a quick hack to generate some
plotting output. The only place in share or src that it is
called is share/numeric/riemsum.mac (to generate plot
output).
The differences between print and sprint appear to be that
sprint always outputs 1-d format while print observes the
display2d flag, and print always ends the line with a newline
and sprint does not. I don't know if these differences really
warrant a separate function, given that there is print for
simple output and printf for more precise formatting.
Also the name sprint is confusing because it calls to mind
a C function by a similar name which is really something
different.
Considering this, I think I would rather just get rid of sprint.
FWIW
Robert Dodier