Functions | |
"clear a; a;","" | eval () |
!assert (x, 1) | |
!assert (lasterr()(1:13),"`a' undefined") | |
!assert (str(1:13),"`a' undefined") | |
!assert (lasterr()(1:18),"user-defined error") | |
!assert (str(1:18),"user-defined error") | |
"<", s,">" | cstrcat () |
!test | !eval ("clear a; a; str='';","str = mangle (lasterr);") |
!assert (mangle(lasterr)(1:14),"<`a' undefined") | |
!assert (str(1:14),"<`a' undefined") | |
!assert (str1(1:13),"`a' undefined") | |
!assert (str2(1:13),"`b' undefined") | |
!assert (str1(1:13),"`b' undefined") | |
!assert (str(1:22),"rethrow: `a' undefined") | |
Variables | |
str = '' | |
clear | b |
str2 = '' | |
str1 = lasterr |
!assert | ( | str(1:22) | , | |
"rethrow: `a' undefined" | ||||
) |
!assert | ( | str1(1:13) | , | |
"`b' undefined" | ||||
) |
!assert | ( | str2(1:13) | , | |
"`b' undefined" | ||||
) |
!assert | ( | str1(1:13) | , | |
"`a' undefined" | ||||
) |
!assert | ( | str(1:14) | ) |
!assert | ( | mangle(lasterr)(1:14) | ) |
!assert | ( | str(1:18) | , | |
"user-defined error" | ||||
) |
!assert | ( | lasterr()(1:18) | , | |
"user-defined error" | ||||
) |
!assert | ( | str(1:13) | , | |
"`a' undefined" | ||||
) |
!assert | ( | lasterr()(1:13) | , | |
"`a' undefined" | ||||
) |
!assert | ( | x | , | |
1 | ||||
) |
!test !eval | ( | ) |
"<", s, ">" cstrcat | ( | ) | [virtual] |
switch default endswitch eval | ( | ) | [virtual] |
b |
str = '' |
str1 = lasterr |
str2 = '' |