Mercurial > octave-nkf
comparison scripts/deprecated/geometric_rnd.m @ 11744:eb0a86b3deb9 release-3-0-x
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:57:36 -0400 |
parents | 72830070a17b |
children |
comparison
equal
deleted
inserted
replaced
11743:c7070f6cadc8 | 11744:eb0a86b3deb9 |
---|---|
37 | 37 |
38 persistent warned = false; | 38 persistent warned = false; |
39 if (! warned) | 39 if (! warned) |
40 warned = true; | 40 warned = true; |
41 warning ("Octave:deprecated-function", | 41 warning ("Octave:deprecated-function", |
42 ["geometric_rnd is obsolete and will be removed from a future\n", | 42 "geometric_rnd is obsolete and will be removed from a future version of Octave; please use geornd instead"); |
43 "version of Octave, please use geornd instead"]); | |
44 endif | 43 endif |
45 | 44 |
46 rnd = geornd (varargin{:}); | 45 rnd = geornd (varargin{:}); |
47 | 46 |
48 endfunction | 47 endfunction |