Re: [fricas-devel] compiler bug (?)

2020-11-03 Thread Ralf Hemmecke
I was not careful enough when I prepared the report, because I actually wanted to show this one. After applying the patch, the errors disappear. Obviously, the compiler delays instantiation if the type arguments are not constant and then forgets to instantiate the default implementation of the ca

Re: [fricas-devel] compiler bug (?)

2020-11-01 Thread Kurt Pagani
QETARKA --> Warnings: [1] findRelation: not known that (UnivariateLaurentSeriesCategory C) is of mode (CATEGORY domain (SIGNATURE coerce ($ (Variable (QUOTE q (SIGNATURE differentiate ($ $ (Variable (QUOTE q (IF (has CX (Algebra (Fraction (Integer (SIGNATURE integrate ($ $ (Var

[fricas-devel] compiler bug (?)

2020-11-01 Thread Ralf Hemmecke
I struggle with a problem that I believe is due to a compiler bug. With the attached program and )co foo.spad findIdentity()$QEtaRamanujanKolberg(Fraction Integer) I get (1) -> findIdentity()$QEtaRamanujanKolberg(Fraction Integer) [:> , foo, 1] Function: laurent : (Integer, Stream(Fraction(

Re: [fricas-devel] compiler bug?

2014-06-05 Thread Waldek Hebisch
Ralf Hemmecke wrote: > > I would have expected that the following program is rejected by the > compiler, since instead of > > dbgprintx("all", all::OutputForm) > > I have only written > > dbgprintx("all", all:OutputForm) > > Needless to say that the program does not implement c

[fricas-devel] compiler bug?

2014-06-05 Thread Ralf Hemmecke
I would have expected that the following program is rejected by the compiler, since instead of dbgprintx("all", all::OutputForm) I have only written dbgprintx("all", all:OutputForm) Needless to say that the program does not implement coerce:%->OuputForm and should be rejected an

[fricas-devel] compiler bug?

2010-06-23 Thread Martin Rubey
why doesn't this compile? )abb domain COMP Composition Composition(): Join(Monoid, RetractableTo List Integer) with nearConcatenation: (%, %) -> % == add Rep := List PositiveInteger per(a: Rep): % == a pretend % rep(a: %): Rep == a pretend Rep