I solved the problem and traced it, so this is not the point. The system
simply calls elt$Partition when I coded
entries(p).i
It should call elt$List(Integer) - after all enries(p) is a List Integer
and no longer represents a Partition!!
Somehow elt from Partition has higher priority and entries(p) seems to
be automatically converted to a Partition, which I think is wrong
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/ab5bef64-ecaf-42da-9a63-dfe64ab29a2d%40grabmeier.net.
Am 19.10.2024 um 19:04 schrieb Grégory Vanuxem <g.va...@gmail.com>:
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAHnU2db3nb_OyTLkk5as3zL0nBvt2v%2BOO-tc-RWq_F-0dWJr7g%40mail.gmail.com.
Am 19.10.2024 um 19:04 schrieb Grégory Vanuxem <g.va...@gmail.com>:
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAHnU2db3nb_OyTLkk5as3zL0nBvt2v%2BOO-tc-RWq_F-0dWJr7g%40mail.gmail.com.
Admittedly, it is sometimes nice that the compiler treats equally. But I
wouldn't mind to insert per's and rep's explicitly just to be clear
whether the object at hand is to be seen as something of type % or of
type Rep.
Note that both types usually can come with quite different
exports.
I must say that after all these years I have not seen a documented rule
of how and when an element is auto-coerced (or rather "pretend"ed to Rep
or %. Similarly, I am missing the rul for X and Union(X,"failed").
Anyway, to me it looks like a compiler error.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/91FEA07F-45BA-4EBA-AC8B-F4E056AEFB56%40grabmeier.net.