[Top][All Lists]

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

[Octave-bug-tracker] [bug #37099] eval() with '; ' as second parameter c

From: Randy
Subject: [Octave-bug-tracker] [bug #37099] eval() with '; ' as second parameter causes parse error
Date: Wed, 15 Aug 2012 00:43:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6) Gecko/20100101 Firefox/10.0.6


                 Summary: eval() with ';' as second parameter causes parse
                 Project: GNU Octave
            Submitted by: littlemanrkc
            Submitted on: Wed 15 Aug 2012 12:43:49 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Randy
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.3
        Operating System: GNU/Linux



Under octave, passing ';' as the second parameter to eval() when an exception
is thrown causes a parse error. To replicate, if 'b' is not defined:

octave:15> clear b;
octave:16> eval('sin(b)',';');
parse error:

  syntax error

>>> ;

Passing any other statement before the semicolon works ok.
octave:17> eval('sin(b)','a=3;');

Under Matlab R2012A, ';' works as expected:

>> clear b;
>> eval('sin(b)',';')


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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