Hi Peter, hi Waldek, (and fricas-devel list),
since I wanted to take advantage of Aldor's ability to show me exactly
which functions are still unimplemented, I tried to compile a .spad file
with Aldor.
There were a few expected problems because the Aldor compiler is more
strict with respect to types. But then I hit the problem with a missing
setelt!.
Obviously, in libfricas, we have "set!" instead of "setelt!". That's
necessary so that assignment "a(i,j,k) := val" works in Aldor.
Unfortunately, I was using "setelt!" by its name and stumpled over the
problem that "setelt!" is actually missing. (Below shown for the domain
"Reference".
Of course, that's not a very big problem, but in order to make the
languages SPAD and Aldor more similar, it would be good, if "setelt!"
would be renamed to "set!" in FriCAS.
find . -type f -exec grep --color -nH -e 'setelt!' {} +|grep -Ev
'qsetelt!|~:|ChangeLog'| grep --color 'setelt!'|wc -l
361
Waldek, I know it's only a cosmetic change but would you approve such a
patch?
Ralf
$ FRICAS=/path/to/my/fricas/installation
$ aldor -gloop -no-abbrev -no-mactext -O -Fasy -Fao -Flsp -lfricas
-Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra
Aldor
Copyright (c) 1990-2007 Aldor Software Organization Ltd (Aldor.org).
Release: Aldor(C) version
1.3.0(13e5b90eecc79ec6704efb333c4c100187520e80) for LINUX(glibc2.10+)
(debug version)
Type "#int help" for more details.
%1 >> #include "fricas"
Comp: 130 msec, Interp: 0 msec
%2 >> Reference
() @ (#1: Type) -> (
if (#1 has SetCategory) then SetCategory
else with
ref: (#1) -> %
apply: (%) -> #1
set!: (%, #1) -> #1
deref: (%) -> #1
setref: (%, #1) -> #1
=: (%, %) -> Boolean)
Comp: 0 msec, Interp: 0 msec
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/86a9b25c-9a2f-f4e8-b519-2799accd69ea%40hemmecke.org.