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 string quotes. OTOH > > ss : String := "string" > > ss::OutputForm > > > > is the same as interpreter "string"::OutputForm and adds > > string quote. I am thinking about removing the special > > handling of '"string"@OutputForm' from Spad compiler. > > There seem to be several uses of this in algebra, so there > > is some work adjusting. But still I think that removing this > > irregularity is better. > > I think the main problem is much simpler than that, its not doing > anything with the result, it should assign it to variable 's'.
Yes. However, all I can do for this is to be more careful and avoid distractions. The strange behaviour of '"string"::OutputForm' was a distraction and this we can fix. BTW: Normal Spad style is to omit 's' and write code like n case lf => (n.lf)::OutputForm n case nd => .... ... -- Waldek Hebisch -- 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 fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.