Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-19 Thread Waldek Hebisch
Martin Baker wrote: > > On 18/09/16 18:41, Waldek Hebisch wrote: > > > > I got caught by Spad weirdness. In Spad > > > >"string"::OutputForm > > > > is the same as > > > >"string"@OutputForm > > > > which gives the same result as > > > >message("string") > > > > that is without

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-19 Thread Martin Baker
On 18/09/16 18:41, Waldek Hebisch wrote: Martin Baker wrote: Thanks for applying previous patch. When you did this you made some changes and one of these changes introduced a bug, so here is a fix for this bug: I got caught by Spad weirdness. In Spad "string"::OutputForm is the same

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-18 Thread Waldek Hebisch
Martin Baker wrote: > > Thanks for applying previous patch. > > When you did this you made some changes and one of these changes > introduced a bug, so here is a fix for this bug: I got caught by Spad weirdness. In Spad "string"::OutputForm is the same as "string"@OutputForm which

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-17 Thread Martin Baker
On 17/09/16 06:00, oldk1331 wrote: I want to have print "a string" insead of print("a string"::OutputForm) when I am debugging. I tried to add a "print : String -> Void", but not successful. What's the right way to do it? I also asked about something like this in thread here:

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-16 Thread Waldek Hebisch
Martin Baker wrote: > > On 15/09/16 19:49, Waldek Hebisch wrote: > > Martin Baker wrote: > >> > >> Minor code changes to computation.spad > >> 1) Change sayMsg to print. > >> 2) Improve OutputForm, don't use string. > >> 3) implement CoercibleTo(OutputForm). > > > > I see that you have a lot of

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-16 Thread Martin Baker
On 15/09/16 19:49, Waldek Hebisch wrote: Martin Baker wrote: Minor code changes to computation.spad 1) Change sayMsg to print. 2) Improve OutputForm, don't use string. 3) implement CoercibleTo(OutputForm). I see that you have a lot of code like: str::Symbol::OutputForm If you want to

Re: [fricas-devel] [PATCH] Minor code changes to computation.spad

2016-09-15 Thread Waldek Hebisch
Martin Baker wrote: > > Minor code changes to computation.spad > 1) Change sayMsg to print. > 2) Improve OutputForm, don't use string. > 3) implement CoercibleTo(OutputForm). I see that you have a lot of code like: str::Symbol::OutputForm If you want to print string without quotes use