octave-3.0.3 accepts 'function' without 'endfucntion' (or with redundant 'endfunction')

John W. Eaton jwe at octave.org
Fri Jul 10 16:50:12 CDT 2009


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


More information about the Bug-octave mailing list