Hi, > Why would it not work if we index Objects *only* by IndexType > > elements and Integers are (can be coerced to) that Domain? > > For setters this may work. But indexing via IndexType returns > matrix, while when both indices are integers we should > get the element.
Ok. This way on can have both, single entries and 1x1 Matrices depending on context and use case. > Overloading on return type may sometimes > help, but I am affraid that having coercion from integers > to IndexType would lead to nasty surprizes. Probably right and not worth the troubles. > > To make the other point, the code I was talking about is complete > > and works by now. This unified approach seems to be superior and > > better from the software design view, but does not exist yet. > > > > Therefore I'd still vote for inclusion and improve later if we like. > > I am now testing your code. Thanks. Let me know about any issues you find. > I had to update it for 's/setelt/setelt!/' change. Ok. > Assuming it works OK I am going to include it in the release. Perfect. I'll try to finish the documentation tonight. -- 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.
