octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [changeset] make str2mat an alias of char


From: dbateman
Subject: Re: [changeset] make str2mat an alias of char
Date: Thu, 4 Dec 2008 21:13:52 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Dec 02, 2008 at 10:10:55PM +0100, Thorsten Meyer wrote:
> Thorsten Meyer wrote:
> > address@hidden wrote:
> >> Looking at 
> >>
> >> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/str2mat.html
> >>
> >> it seems that str2mat is considered as obselete. I'd therefore be 
> >> inclined to move str2mat to scripts/deprecated but written as something
> >> like
> >>
> >> 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{:});
> >>
> >> endfunction
> >>
> >>
> > Fine with me. See the attached patch (had to replace varargout by a fixed 
> > output
> > argument to keep behaviour on the command line).
> > 
> > Thorsten
> > 
> and again with fixed ChangeLog entries.
> 
> Thorsten
> 


I'm completely buried under work at the moment, but don't see a reason 
not to apply this.. Perhaps someone else can commit it..

D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]