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

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

[Octave-bug-tracker] [bug #36217] New variables should be disallowed in


From: Max Brister
Subject: [Octave-bug-tracker] [bug #36217] New variables should be disallowed in nested functions
Date: Mon, 16 Apr 2012 21:58:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19

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

                 Summary: New variables should be disallowed in nested
functions
                 Project: GNU Octave
            Submitted by: fisheater
            Submitted on: Mon 16 Apr 2012 09:58:16 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Code like

function foo
  eval ('x = 5;');
  bar ();

  function bar
    # Which x should this be?
    disp (x);
  endfunction
endfunction

foo ();


This should error as it causes problems for variable scopes. This is
consistent with how matlab handles the issue. I am currently working on a
patch.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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