Mercurial > hg > octave-lyh
diff scripts/deprecated/is_complex.m @ 7696:0a362fa8f3c8
Add warning to rest of deprecated functions
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 04 Apr 2008 10:18:35 -0400 |
parents | 8e5371d47da6 |
children | 1cdb42b372e8 72830070a17b |
line wrap: on
line diff
--- a/scripts/deprecated/is_complex.m +++ b/scripts/deprecated/is_complex.m @@ -27,6 +27,14 @@ function retval = is_complex (varargin) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + ["is_complex is obsolete and will be removed from a future\n", + "version of Octave, please use iscomplex instead"]); + endif + retval = iscomplex (varargin{:}); endfunction