Assignment of list("") in a cell may be wrong, depending on the way the cell has been created
Reported by Samuel GOUGEON (@sgougeon)
-- Bug description --
Assignment of a cell's entry may be wrong, depending on the way the cell has been declared/initialized. See also bug 5602
-- Scilab error message --
-->clear c
-->c=cell(2,2) // explicit cell declaration
c =
!{} {} !
!{} {} !
-->c(2,2).entries=list("")
c =
!{} {} !
!{} "" ! // BAD
-->typeof(c(2,2).entries)
ans =
string // SHOULD BE LIST
//------------------------------------
-->clear c
-->c(2,2).entries=list("") // implicit cell creation
c =
!{} {} !
!{} list("") ! // OK!
-->typeof(c(2,2).entries)
ans =
list
-- How to reproduce the bug --
clear c
c=cell(2,2) // explicit cell declaration
c(2,2).entries=list("")
typeof(c(2,2).entries)
//
clear c
c(2,2).entries=list("") // implicit cell creation
typeof(c(2,2).entries)