On 9/24/23 21:42, Waldek Hebisch wrote:

This behaviour clearly was intended as a convenience feature for
developers.  But times have changed and FriCAS code changed,
so it is now not needed.

ATM it is not clear to me what should we write in the comment.
Most of the comment is redundant, it repeats in impreciase
way what is clearly expressed by code.  And extra info
(about $spadroot) is going to be invalid.

To say the truth, it is not clear to me if initroot should
look at $spadroot at all.

Currently we have 4 ways to get base location of FriCAS:

1) FRICAS environment variable
2) argument to build-interpsys
3) location inferred from path to FriCASsys
4) remembered value of $spadroot

ATM I do not know if remembered $spadroot can be used except for
values restored from an image (which is currently used but should
be not used).


The logic should simplifies to:

1) use $FRICAS env var, and store it to $spadroot
2) infer from path to FRICASsys, and store it to $spadroot

Then everywhere else should use $spadroot.

In this case, code in various places can be simplified.

- Qian

--
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/d686fa39-4322-4d88-8832-a05701ccb63e%40gmail.com.

Reply via email to