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

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

[Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit


From: Rik
Subject: [Octave-bug-tracker] [bug #60845] Variables in nested functions exhibit multiple problems
Date: Mon, 28 Jun 2021 17:25:53 -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

Update of bug #60845 (project octave):

                 Summary: Nested functions variable scope when varargin is
present => Variables in nested functions exhibit multiple problems

    _______________________________________________________

Follow-up Comment #5:

I'm adding jwe to the CC list because this behavior is just so strange.

Observation #1 : variables, as determined by 'who', show up in scopes where
they should not be.

Observation #2 : variables in nested functions which should inherit their
value and type from the enclosing top-level function do not do so.

Observation #3 : The incorrect behavior shows up when the top-level function
has an input parameter list, but otherwise seems to do the right thing.

    _______________________________________________________

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]