[bug #68530] error([]) handling

Liang Tang <[email protected]> Thu, 16 Jul 2026 11:47:05 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============3133812781000733474==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============3133812781000733474==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1714636915-1784216825=:1419366"
Content-Disposition: inline

--8323329-1714636915-1784216825=:1419366
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?68530>=0A=0A                 Summa=
ry: error([]) handling=0A                   Group: GNU Octave=0A           =
    Submitter: lt1234=0A               Submitted: Thu 16 Jul 2026 03:46:53 =
PM UTC=0A                Category: Octave Function=0A                Severi=
ty: 3 - Normal=0A                Priority: 5 - Normal=0A              Item =
Group: Regression=0A                  Status: None=0A             Assigned =
to: None=0A         Originator Name: lt1234=0A        Originator Email:=0A =
            Open/Closed: Open=0A         Discussion Lock: Unlocked=0A      =
           Release: 11.1.0=0A        Operating System: Microsoft Windows=0A=
           Fixed Release: None=0A         Planned Release: None=0A=0A=0A   =
 _______________________________________________________=0A=0AFollow-up Com=
ments:=0A=0A=0A-------------------------------------------------------=0ADa=
te: Thu 16 Jul 2026 03:46:53 PM UTC By: Liang Tang <lt1234>=0AMatlab docume=
ntation for error: =0A=0ATips=0AIf all inputs to error are empty, MATLAB do=
es not throw an error.=0A=0Aexample: In gui command window: error([]); b=3D=
1=0A=0AIn Octave b is undefined.  In Matlab, b=3D1.  =0A=0Aerror: error: ME=
SSAGE must be a string=0A=0Aexample: clear b; try error([]), catch, b=3D1,e=
nd =0A=0AIn Octave b=3D1.  In Matlab, b is undefined. =0A=0AIn Octave 8.2, =
the error([]) handling is closer to matlab:=0A=0Aerror([]); b=3D1=0Awarning=
: implicit conversion from null_matrix to sq_string=0Ab =3D 1=0A=0A>> clear=
 b; try error([]), catch, b=3D1,end=0Awarning: implicit conversion from nul=
l_matrix to sq_string=0A>> b=0Aerror: 'b' undefined near line 1, column 1=
=0A=0AThanks. =0A=0A=0A=0A=0A=0A=0A=0A=0A    ______________________________=
_________________________=0A=0AReply to this item at:=0A=0A  <https://savan=
nah.gnu.org/bugs/?68530>=0A=0A_____________________________________________=
__=0AMessage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1784216825=:1419366
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCalj8+QAKCRCqLAuaBUf3
Tl5bAQC/qkTUxzx/DOdAQzn+yTaeEwYqjYsiqIqDqGmtADZ51AEAqi+AVB3+ICXk
hU+TZQj9AwmQvcRbXy/C5Z5TM/wj9gI=
=LGwf
-----END PGP SIGNATURE-----

--8323329-1714636915-1784216825=:1419366--



--===============3133812781000733474==--