functionend ignored

David Grundberg individ at acc.umu.se
Fri Jul 17 11:51:03 CDT 2009


Sergei Steshenko wrote:
> I think it's the case when sloppy Matlab code should be fixed, i.e.
> the case of intentional bug-to-bug incompatibility with Matlab.
>
> What I've read so far looks very convoluted, and if the developers want
> to spend their effort, they better spend it implementing missing Matlab
> functionality (like nested functions).
>   

In order to be able to support nested functions, Octave need to be able 
to parse them. And that mail was me trying to figure out how to do just 
that.

> I mean that missing 'end'/'enfunction' should not just cause a warning, but
> be considered an error. It is really easy to add missing 'endfunction'.
>
>
> Regards,
>   Sergei.
>   

I think it is necessary to support missing ends, since it isn't by any 
means deprecated by Mathworks. They even have their examples written in 
that style.

Regards,
David



More information about the Bug-octave mailing list