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

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

[Octave-bug-tracker] [bug #60845] Nested functions variable scope when v


From: Rik
Subject: [Octave-bug-tracker] [bug #60845] Nested functions variable scope when varargin is present
Date: Mon, 28 Jun 2021 17:18:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Follow-up Comment #4, bug #60845 (project octave):

This is super strange.  It turns out varargin isn't the issue; ANY variable in
the input parameter list for the top-level function triggers the behavior. 
Here is my latest test case


function mainfcn3 (x)

  [Ahandle, static, fcn_handle] = checkInput();  # A boolean variable
  output = fcn_handle ()  # executed nested function

  function [Ahandle, static, fcn_handle] = checkInput()



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60845>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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