From bug-octave-request at che dot utexas dot edu Tue Nov 29 09:06:52 1994 Subject: Bug (or compability problem) From: Johan Pensar RT To: bug-octave at che dot utexas dot edu Date: Tue, 29 Nov 1994 17:05:51 +0200 Not actually a bug, but mainly a compability problem is that octave 1.0 defines that the 'error' function always returns to toplevel, but matlab according to the online help returns to toplevel ONLY if the argument is a non-null string. Thus, following construct is a completely valid argument check in matlab: error(nargchk(2,6,nargin)); and returns to toplevel only if the nargchk function returns a string, but in octave the aforementioned example will always return to toplevel. Othervise satisfied so far, Johan ------------------------------------------------------------------------- Johan Pensar E-mail: jpensar at abo dot fi Process Control Laboratory Phone: +358 21 654743 Abo Akademi University Home: +358 21 382992 Biskopsgatan 8 Fax: +358 21 654479 FIN-20500 Abo http://www.abo.fi/~jpensar/ Finland Office: 366 (Axelia) ------------------------------------------------------------------------- "Unix is inconsistant and power user friendly."