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

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

[Octave-bug-tracker] [bug #53405] eval cannot create variables inside "l


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #53405] eval cannot create variables inside "local functions"
Date: Wed, 21 Mar 2018 12:06:13 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #1, bug #53405 (project octave):

You change seems fine to me.

Another way to test would be


function status = local_function_eval ()
  eval ("y = 5;");  # works
  status = local_fcn ("y = 6");
endfunction

function status = local_fcn (expr)
  eval (expr);  # No longer works since 4.3.0+
  status = exist ("y");
endfunction


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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