t = typename() yields an error. [t,n]=typename() answer is outdated for functions (11=m should be removed. 13=mc=>function)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
t = typename() yields an error.
[t,n]=typename() answer is outdated for functions (11=m should be removed. 13=mc=>function)
--> typename // OK
ans =
1.
2.
4.
5.
6.
7.
8.
9.
10.
11.
13.
14.
15.
16.
17.
128.
129.
130.
--> t = typename() // KO
Can not assign multiple value in a single variable
--> [t,n] = typename(); [string(t) n]
ans =
!1 s !
!2 p !
!4 b !
!5 sp !
!6 spb !
!7 msp !
!8 i !
!9 h !
!10 c !
!11 m ! <<<< No longer exists
!13 mc ! <<<< Now function instead of mc
!14 f !
!15 l !
!16 tl !
!17 ml !
!128 ptr !
!129 ip !
!130 fptr !
ERROR LOG:
----------
Can not assign multiple value in a single variable
HOW TO REPRODUCE THE BUG:
-------------------------
t = typename()
[t,n] = typename(); [string(t) n]
OTHER INFORMATION:
------------------
https://help.scilab.org/docs/6.0.2/en_US/typename.html
See also the bug 16286 requesting to merge typename() into type() or typeof()