octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62829] "quiet" warning state is undocumented


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #62829] "quiet" warning state is undocumented
Date: Thu, 28 Jul 2022 10:35:22 -0400 (EDT)

Follow-up Comment #3, bug #62829 (project octave):

Here is a demo with Octave 8. Default behavior:

$ octave -f --eval "nchoosek (100, 50), lastwarn"
warning: nchoosek: possible loss of precision
warning: called from
    nchoosek at line 150 column 7

ans = 1.0089e+29
ans = nchoosek: possible loss of precision


Warning off silences lastwarn also:

$ octave -f --eval "warning off; nchoosek (100, 50), lastwarn"
ans = 1.0089e+29
ans = 


Warning on quiet silences display but allows lastwarn:

$ octave -f --eval "warning on quiet; nchoosek (100, 50), lastwarn"
ans = 1.0089e+29
ans = nchoosek: possible loss of precision


It's useful because of that difference if the user wants to do fine-grained
warning message control, but is not fully Matlab-compatible. Since Octave is
generally a superset of Matlab, it's probably better to retain it and document
it.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62829>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]