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

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

[Octave-bug-tracker] [bug #41028] warning off shouldn't affect lastwarn


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #41028] warning off shouldn't affect lastwarn
Date: Mon, 30 Dec 2013 17:00:31 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #1, bug #41028 (project octave):

Have you tried "warning on quiet"? That will suppress the display of warnings
but still record them in the background.


octave:1> lastwarn
ans = 
octave:2> warning query quiet
ans =
  scalar structure containing the fields:
    identifier = quiet
    state = off
octave:3> warning on quiet
octave:4> warning query quiet
ans =
  scalar structure containing the fields:
    identifier = quiet
    state = on
octave:5> 1/0
ans = Inf
octave:6> lastwarn
ans = warning: division by zero



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41028>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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