Mercurial > octave-nkf
changeset 8878:ebb8c1dcf4d3
split.m: add warning, note version
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Feb 2009 12:09:28 -0500 |
parents | 2c8b2399247b |
children | 1beaaffb3c1f |
files | scripts/ChangeLog scripts/deprecated/split.m |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Thu Feb 26 10:29:59 2009 +0100 +++ b/scripts/ChangeLog Thu Feb 26 12:09:28 2009 -0500 @@ -1,3 +1,7 @@ +2009-02-26 John W. Eaton <jwe@octave.org> + + * deprecated/split.m: Add warning, not about version. + 2009-02-26 Jaroslav Hajek <highegg@gmail.com> * strings/strsplit.m: New function.
--- a/scripts/deprecated/split.m Thu Feb 26 10:29:59 2009 +0100 +++ b/scripts/deprecated/split.m Thu Feb 26 12:09:28 2009 -0500 @@ -49,8 +49,17 @@ ## Author: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> ## Adapted-By: jwe +## Deprecated in version 3.2 + function m = split (s, t, n) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "split is obsolete and will be removed from a future version of Octave; please use strsplit instead"); + endif + if (nargin == 2 || nargin == 3) if (nargin == 2) n = length (s);