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

[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

URL:
  <http://savannah.gnu.org/bugs/?37099>

                 Summary: eval() with ';' as second parameter causes parse
error
                 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

    _______________________________________________________

Details:

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;');
octave:18>


Under Matlab R2012A, ';' works as expected:

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




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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