From bug-request at octave dot org Fri Apr 14 10:16:42 2006 Subject: Re: strcmpi doesn't check input types From: Bill Denney To: "John W. Eaton" cc: bugs at octave dot org Date: Fri, 14 Apr 2006 11:15:35 -0400 (EDT) On Fri, 14 Apr 2006, John W. Eaton wrote: > I agree that the current behavior is not right, but an error would > make the behavior of strcmpi different from strcmp, so I think it > should just return 0 if the arguments are not the right type. I would view that as a silent failure. I, as a user, assume that if I don't see an error that I have done things correctly. If I give strcmp a double and a char, I'd prefer to be told of that. I'd say that instead of returning 0 like strcmp, strcmp should be changed to give an error. What case(s) would be better with a returned 0 instead of an error? Bill -- "Rub her feet." -- Jules, _Pulp Fiction_ ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------