Is this behavior intentional? Or would it be OK to also assigne the same error-id to the last error message (with too many input arguments). the error-id being empty when calling a function with too many input arguments) troubles me. error message: error: myfunc: function falled with too many inputsĮspecially the last behavior (i.e.This is the same as with older Octave versions.And there are many BISTs in place to check that this works properly.īut with the new Octave 7.0.90 I now get this different behavior: myfunc(1,2,3) with too many input arguments gives.error message: Invalid call to myfunc.myfunc() with too little input arguments gives.With Octave 6.3.0 (and older Octave versions) I get these error messages: I often have functions like this (in the image packge), which should work equally well under Octave 7 as under some older Octave versions. And in general I like this improvement of the interpreter.īut this new behavior seems inconsistent to me. This is also properly noted in the NEWS file. Whats_she_telling_me = (isprime(num)) ? "prime
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |