Re: [Scilab-users] clearing macros of a library

2022-02-15 Thread Samuel Gougeon
Hello Jean-Yves, Le 15/02/2022 à 17:27, Jean-Yves Baudais a écrit : Bonjour, Is there a simple way to clear all the used functions of a given library, because unloader.sce only remove the library from the "who" list, but not the functions that have already been used and that stay in memory,

[Scilab-users] unloader.sce

2022-02-15 Thread Jean-Yves Baudais
Bonjour, Is there a simple way to clear all the used functions of a given library, because unloader.sce only remove the library from the "who" list, but not the functions that have already been used and that stay in memory, unfortunatly! Thanks, -- Jean-Yves Baudais

Re: [Scilab-users] unloader.sci & module.quit

2022-02-15 Thread Samuel Gougeon
Le 15/02/2022 à 20:24, Samuel Gougeon a écrit : .../... * If the module to unload is an autoloaded ATOMS module, its library is protected. Then trying to clear it yields an expected error. The default unloader.sce does not take this into account. Yet, it should avoid or handle the

Re: [Scilab-users] clearing macros of a library

2022-02-15 Thread Jean-Yves Baudais
> --> clear(string(mylib)(2:$)) Thanks! It does what I expected. > Should we actually clear also macros belonging to the library, in the default > unloaded.sce script? > There is currently an explicit warning in comment: " This does not unregister > its macros" > I think it would be cleaner. But

Re: [Scilab-users] unloader.sci & module.quit

2022-02-15 Thread Samuel Gougeon
Le 15/02/2022 à 19:03, Jean-Yves Baudais a écrit : --> clear(string(mylib)(2:$)) Thanks! It does what I expected. Should we actually clear also macros belonging to the library, in the default unloaded.sce script? There is currently an explicit warning in comment: " This does not unregister