Mercurial > hg > octave-nkf
comparison scripts/deprecated/weibrnd.m @ 7704:1cdb42b372e8
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:56:48 -0400 |
parents | 0a362fa8f3c8 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
34 | 34 |
35 persistent warned = false; | 35 persistent warned = false; |
36 if (! warned) | 36 if (! warned) |
37 warned = true; | 37 warned = true; |
38 warning ("Octave:deprecated-function", | 38 warning ("Octave:deprecated-function", |
39 ["weibrnd is obsolete and will be removed from a future\n", | 39 "weibrnd is obsolete and will be removed from a future version of Octave; please use wblrnd instead"); |
40 "version of Octave, please use wblrnd instead"]); | |
41 endif | 40 endif |
42 | 41 |
43 rnd = wblrnd (varargin{:}); | 42 rnd = wblrnd (varargin{:}); |
44 | 43 |
45 endfunction | 44 endfunction |