[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stubs for missing functions
From: |
John W. Eaton |
Subject: |
Re: stubs for missing functions |
Date: |
Tue, 23 Mar 2010 20:31:50 -0400 |
On 23-Mar-2010, S ren Hauberg wrote:
| 3. It seems like you forgot to deal with keywords in your list of
| potential stubs. At least the list includes stuff like 'end',
| 'for', 'varargin', etc. In Octave, you can get the complete list
| of keywords, using the '__keywords__' function.
OK, I removed keywords from the list.
| Also
|
| > +function unimplemented (fcn)
| > +
| > + txt = __makeinfo__ (sprintf ("The %s function is not yet implemented in
Octave. Please read @url{http://www.octave.org/missing.html} to find out how
you can help to contribute a working version of this function.", fcn));
| > +
| > + while (txt(end) == "\n")
| > + txt(end) = "";
| > + endwhile
|
| Can't this while-loop be replaced by a call to a 'strip' function. Ohh,
| I see we don't have functions for stripping spaces from text. In 'pkg.m'
| we have some functions for doing stuff like this. Perhaps they should be
| made generally available?
I guess
regexprep (txt, "\n*$", "")
will also work?
jwe