I am sure the following script used to work in
Octave:
-----------------------
# test script
say_hello;
function say_hello
fprintf('Hello !\n');
endfunction
-------------------------
Now I get the following error in both 3.8.2 and the development
version:
octave:1> testscript
error: 'say_hello' undefined near line 5 column 1
error: called from:
error: /home/ulfg/Octave/testscript.m at line 5, column 1
octave:1>
I don't know if this is a bug or intentional.
I don't think this was ever legal in Octave. I just tested with
versions 3.2.4, 3.4.3, 3.6.4, 3.8.0 and they all give the same error
as with 3.8.2.
--Rik
|