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

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

[Octave-bug-tracker] [bug #53331] Can't make function output argument pe


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #53331] Can't make function output argument persistent (poor man's constant)
Date: Wed, 21 Mar 2018 17:27:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Update of bug #53331 (project octave):

                  Status:               Confirmed => Need Info              

    _______________________________________________________

Follow-up Comment #6:

Confirm comment #4.  Matlab R2017b errors hard on functions like these: "The
current use of 'x' is inconsistent with its previous use or definition (line
1)."


function x = foo ()
  persistent x;
  x = 1;
end


Thus close this item as "won't fix"?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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