[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:13:36 -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 #3, bug #60845 (project octave):
Interestingly, having nested functions use varargin seems okay. It is having
the main function use varargin which seems to trigger the problem. This, for
example, works
function mainfcn3 ()
[Ahandle, static, fcn_handle] = checkInput(); # A boolean variable
output = fcn_handle () # executed nested function
function [Ahandle, static, fcn_handle] = checkInput(varargin)
BUT, this fails
function mainfcn3 (varargin)
[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/
- [Octave-bug-tracker] [bug #60845] Nested functions variable scope, José Matos, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Nested functions variable scope, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Nested functions variable scope when varargin is present, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Nested functions variable scope when varargin is present,
Rik <=
- [Octave-bug-tracker] [bug #60845] Nested functions variable scope when varargin is present, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, José Matos, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, Rik, 2021/06/28
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, John W. Eaton, 2021/06/29
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, John W. Eaton, 2021/06/29
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, Rik, 2021/06/29
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, John W. Eaton, 2021/06/29
- [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems, Rik, 2021/06/29