|
From: | David Bateman |
Subject: | Re: [changeset] make str2mat an alias of char |
Date: | Thu, 04 Dec 2008 22:20:12 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.17 (X11/20081018) |
Thorsten Meyer wrote:
Thorsten Meyer wrote:address@hidden wrote:Looking athttp://www.mathworks.com/access/helpdesk/help/techdoc/ref/str2mat.htmlit seems that str2mat is considered as obselete. I'd therefore be inclined to move str2mat to scripts/deprecated but written as somethinglike function varargout = str2mat (varargin) persistent warned = false; if (! warned) warned = true; warning ("Octave:deprecated-function","str2mat is obsolete and will be removed from a future version of Octave; please use char instead");endif varargout = cell (nargout, 1); [ varargout{:} ] = char (varargin{:}); endfunctionFine with me. See the attached patch (had to replace varargout by a fixed output argument to keep behaviour on the command line). Thorstenand again with fixed ChangeLog entries. Thorsten
Ok, so I pushed them to Savannah in the end D. -- David Bateman address@hidden 35 rue Gambetta +33 1 46 04 02 18 (Home) 92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob)
[Prev in Thread] | Current Thread | [Next in Thread] |