Mercurial > hg > octave-lyh
diff scripts/deprecated/polyinteg.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 |
line wrap: on
line diff
--- a/scripts/deprecated/polyinteg.m +++ b/scripts/deprecated/polyinteg.m @@ -34,6 +34,14 @@ function y = polyinteg (p) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + ["polyinteg is obsolete and will be removed from a future\n", + "version of Octave, please use polyint instead"]); + endif + y = polyint (p); endfunction