From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 28 15:04:09 2000 Subject: Some problems From: "John W. Eaton" To: Hagen Gilsing Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 28 Jan 2000 15:04:31 -0600 (CST) On 20-Feb-1999, Hagen Gilsing wrote: | octave-2.1.12:1> clear;OCTAVE_VERSION | OCTAVE_VERSION = 2.1.12 | ans = 2.1.12 | octave-2.1.12:2> function f() error('I am f.');endfunction | octave-2.1.12:3> function g() warning('I am g.');endfunction | octave-2.1.12:4> try f catch fprintf(2,'catched f !\n');fflush(2);end_try_catch;fflush(1);fflush(2); | catched f ! | octave-2.1.12:5> try g catch fprintf(2,'catched g !\n');fflush(2);end_try_catch;fflush(1);fflush(2); | octave-2.1.12:6> | | Where is the warning output of g ? | | The same result one gains with Octave-2.0.13 . I've fixed the current development sources so that warning messages are not suppressed in try-catch blocks. Now the result of the above is: octave:1> function f() error('I am f.');endfunction octave:2> function g() warning('I am g.');endfunction octave:3> try f catch fprintf(2,'catched f !\n');fflush(2);end_try_catch;fflush(1);fflush(2); catched f ! octave:4> try g catch fprintf(2,'catched g !\n');fflush(2);end_try_catch;fflush(1);fflush(2); warning: I am g. Thanks, jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------