[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error('') behaviour
From: |
John W. Eaton |
Subject: |
error('') behaviour |
Date: |
Tue, 31 Mar 2009 07:18:49 -0700 |
On 31-Mar-2009, Marco Caliari wrote:
| Dear maintainers,
|
| just to report the following incompatibility:
|
| ml
| >> error(''),disp('done')
| done
|
| octave
| >> error(''),disp('done')
| error:
|
| That is, if the function error is called with an empty string, than no
| error should occour. I have seen this piece of code
|
| error(nargchk(0,1,nargin));
|
| exploiting the incompatibility.
Does the argument have to be completely empty? What happens for
error (' ')
?
Thanks,
jwe