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

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

[Octave-bug-tracker] [bug #51698] Nested function fails to inherit a var


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51698] Nested function fails to inherit a variable
Date: Wed, 9 Aug 2017 07:25:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #2, bug #51698 (project octave):

Reposting with verbatim tag so we don't have to rely on pastebin data...


function testmy();
  _setK();
  _callsub();
  ## disp(K) uncommenting this removes the bug! 

  function _callsub();
    disp(K) ## says that K is unknown! 
  endfunction
  
endfunction


  
function _setK();
  assignin("caller", "K", 1);
endfunction


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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