What is 'return_last_computed_value' ?

John W. Eaton jwe at bevo.che.wisc.edu
Mon Oct 27 13:29:44 CDT 2008


On 26-Oct-2008, Søren Hauberg wrote:

|   The file 'func.texi' contains the following line
| 
|     @DOCSTRING(return_last_computed_value)
| 
| but no such function seem to exist. In octave.pdf nothing seems to
| appear that's related to this function. So, what is it? Is this line
| just a left-over from earlier days?

The src/ChangeLog file says it was removed on 2003-07-15.

As I recall, if you set this variable in earlier versions of Octave,
functions could return a value even when written as something like

  function foo ()
    1;
  end

The value returned would be the value of the last expression computed
in the function.  I don't think anyone really misses this feature...

jwe



More information about the Bug-octave mailing list