Ralf Hemmecke wrote:
>
> On 07/14/2014 12:22 AM, Waldek Hebisch wrote:
> >> What about
> >>
> >> sayTeXStream(x, $fricasOutput) ==
> >> sayString(x)
> >> sayNewLine()
> >> FORCE_-OUTPUT $fricasOutput
> >>
> >> sayTeX(x) == if x then sayTeXStream(x, $texOutputStream)
> >>
> >> then?
> >
> > Looks wrong for me:
> >
> > 1) sayString seem to normally get string as an argument.
> > AFAICS sayTeX may get list of stings.
>
> Huh? Where? If it is just in tex.spad, then I don't care, because I will
> send new code in a few minutes. And there sayTeX is only used with a
> string as an argument.
OK.
> > 2) there are more redirections than just using $fricasOutput
>
> Uff... what does that mean exactly? My code above basically copies the
> current situation just with sayBrightly1 replaced by sayString. Can you
> explain why my code would behave badly in certain situations? Which
> situations?
Well, there is extra redirection in sayBrightlyNT. This redirection
probably does not affect sayTeX (at first I thought that it may).
We also use Lisp synonym streams and bindings of Lisp
'*standard-output*'. Hopefully all this mess do not affect
your change, but one have to be careful.
Which situations: output to file, paste generation, dumping algebra
output to a file (while getting output to console).
So, after second look your change probably is correct, but needs
some checking.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.