octave-3.0.3 accepts 'function' without 'endfucntion' (or with redundant 'endfunction')
Sergei Steshenko
sergstesh at yahoo.com
Fri Jul 10 17:03:19 CDT 2009
--- On Fri, 7/10/09, John W. Eaton <jwe at octave.org> wrote:
> From: John W. Eaton <jwe at octave.org>
> Subject: Re: octave-3.0.3 accepts 'function' without 'endfucntion' (or with redundant 'endfunction')
> To: "Sergei Steshenko" <sergstesh at yahoo.com>
> Cc: "David Grundberg" <individ at acc.umu.se>, bug-octave at octave.org
> Date: Friday, July 10, 2009, 2:50 PM
> On 10-Jul-2009, Sergei Steshenko
> wrote:
>
> | I think that missing 'end'/'endfunction' should always
> cause warnings.
>
> Matlab users wouldn't like that very much since a .m file
> with
>
> function [retvals] = foo (args)
> % function body here
>
> is valid and doesn't result in any warnings in Matlab.
>
> jwe
>
This is what documentation says:
"
help endfunction
*** endfunction:
-- Keyword: endfunction
Mark the end of a function.
See also: function.
".
Could you please replace "Mark" with "Optional, but recommended mark of" ?
Thanks,
Sergei.
More information about the Bug-octave
mailing list