octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave becoming too MATLAB compatible ?


From: Jordi Gutiérrez Hermoso
Subject: Re: Octave becoming too MATLAB compatible ?
Date: Tue, 02 Sep 2014 09:04:24 -0400

On Fri, 2014-08-29 at 16:21 -0400, Ulf Griesmann wrote:
> I am sure the following script used to work in Octave:

You are in error. This never worked.

What will work is the following:

    # test script 
    1;

    function say_hello 
        fprintf('Hello !\n'); 
    endfunction 

    say_hello; 

or this:

    # test script
    function testscript()
        say_hello;
    endfunction

    function say_hello 
        fprintf('Hello !\n'); 
    endfunction 


Octave's parser never did two passes over a script file, only over
function files.

- Jordi G. H.





reply via email to

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