On Tue, Oct 06, 2020 at 01:11:26PM +0200, Ralf Hemmecke wrote:
> Obviously, ")lib FOO" does more than I would have expected.
> 
> I realized that after
> 
> setFormat!(FormatMathJax)$JFriCASSupport
> )lib FOO
> 
> there was no MathJax output anymore.
> 
> The reason seems to be that ")lib FOO" clears domain variables.
> That, is of course problematic for the domain that switches on/off the
> output in my new formatting framework.
> 
> Not over problematic since FormattedOutput might be handled otherwise in
> the future, but still I was surprised that loading code for another
> domain/package would have effect on other domains.

Well, normal situation during developement is reloading, that
is replacing old version of domain by new.  In such case we
want to get rid of all references to old domain.  This is
done by clearing all domain variables.  Such behaviour is
necessary for reloading because currently we have no way
of tracking dependencies so need to clear all variables.
OTOH for most domains this is not a problem because domains
are functional and after reinitialization we get them
in the same state as before.

Clearly, for replacing Boot code by Spad we need domains
which will preserve values of variables.  My current
idea is to have list of "system" domains which do not
reference much outside and for which variables are
preserved (which is how Boot works).

-- 
                              Waldek Hebisch

-- 
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/20201006150329.GA34939%40math.uni.wroc.pl.

Reply via email to