From bug-octave-request at bevo dot che dot wisc dot edu Sat Oct 9 13:00:15 1999 Subject: 2.1.14 : Updated .m file From: etienne grossmann To: bug-octave at bevo dot che dot wisc dot edu CC: etienne at isr dot ist dot utl dot pt Date: Sat, 9 Oct 1999 19:00:42 +0100 (WEST) Hello, If I create in octave's path a file "buggy.m" containing the two lines : ====================================================================== function b = buggy(x) b = 1 ; ====================================================================== In octave, I call the function and get the correct answer : octave:117> buggy() ans = 1 Then I put an error in buggy.m, for example by appending the line ====================================================================== print("forget parenthesis" ; ====================================================================== Octave will complain next time I call "buggy()", which is normal too : ====================================================================== octave:122> buggy() parse error near line 3 of file /home/etienne/prog/octave/mylib/buggy.m >>> print("forget parenthesis" ; ^ error: evaluating expression near line 122, column 1 ====================================================================== However, the following call will alternatively succeed and fail : ====================================================================== octave:122> buggy() ans = 1 octave:123> buggy() parse error near line 3 of file /home/etienne/prog/octave/mylib/buggy.m >>> print("forget parenthesis" ; ^ error: evaluating expression near line 123, column 1 ====================================================================== Cheers, Etienne --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------