[Scilab-users] Toolboxes startup
Samuel Gougeon
sgougeon at free.fr
Mon Apr 26 14:51:19 CEST 2021
Le 26/04/2021 à 14:15, Stéphane Mottelet a écrit :
>> .../...
>>
>> Such a wish was reported 10 years ago as bug 6801
>> <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org/show_bug.cgi?id=6801>.
>>
>> To me, the only way to overcome any mprintf or disp made in *.start
>> files of external modules would be to become able to redirect the
>> standard output to null (or anywhere else as in a file, as with
>> diary, that forks the stream instead of redirecting it).
>> I don't think that %toolboxes aims to become public.
>> atomsGetInstalled() and atomsGetLoaded() (and others) would likely be
>> more suited to test the atoms status.
>>
>> For contribution,
>> Samuel
>
> Yeah that's the idea. But better than redirection of the standard
> output, all the stuff displayed in the .start file should go in a
> Journal, to which display methods can be associated. So instead of
> explicitely calling disp or mprinf, etc. the .start script should just
> add some stuff + associated verbosity level to the journal. What would
> be actually really displayed will depend on the level of the used
> Journal. That's the way the output is controlled in Ipopt, for example
> (but at the C++ level).
>
We can't prevent authors to actually add and use mprintf or/and disp in
their .start external file. They will be always free to use such
statements in the .start file template instanciated for their actual
toolbox.
Now, if for instance a special syntax and parsing on .start comments is
proposed, it could be comprehensive enough to be actually and
exclusively used.
But, likely, only static information would be possible in comments.
Formatted information like with printf placeholders could not be provided.
By the way, i am not sure that the most compact display should be the
default mode. Out of the only module name, information displayed when
loading might be important.
We tend to consider these displays as boring. But i am wondering that
this is because loading can be quite long... unrelated to the display.
When working afterward in the session, any displayed matrix or handle
gets most often immediately taller in the console than any initial
autoloading information (that occurs only once).
So, to me, this is not really critical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210426/68620f8e/attachment.htm>
More information about the users
mailing list