octave-maintainers
[Top][All Lists]
Advanced

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

%!functions and endfunction declaration


From: Rik
Subject: %!functions and endfunction declaration
Date: Fri, 07 Oct 2011 09:04:47 -0700

10/7/11

All,

Currently, test functions are declared as

%!function mytestfunc (...)
%! function line 1 # separated by 1 space from '%!'
%! function line 2
%!test # OR any other test block like assert, shared, or fail

It's a small syntactic thing, but I would like to be able to write a closing endfunction declaration so that this is valid
%!function mytestfunc (...)
%! line 1
%!endfunction
%!test

Is there any objection to the attached patch to test.m which makes '%!endfunction' a NOP for testing, but doesn't provoke a syntax error in test.m?

--Rik


Attachment: test.m.patch
Description: Text Data


reply via email to

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