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: Mike Miller
Subject: [Octave-bug-tracker] [bug #53331] Can't make function output argument persistent (poor man's constant)
Date: Mon, 12 Mar 2018 17:00:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Update of bug #53331 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed, and it is a regression from 4.2.

Can be worked around with a simple no-cost copy of the constant to the return
value:


function x = foo ()
  persistent y = 1;
  x = y;
endfunction


    _______________________________________________________

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]