[Scilab-Dev] type of structs and cells

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Sep 12 17:02:02 CEST 2018


Hi all,

I hope some of you are still reading this list, which has a very low 
traffic these days... I just discovered, while working on

https://codereview.scilab.org/#/c/20491/

https://codereview.scilab.org/#/c/19114/

that cells have the same type number, although a different type string. 
Hence, when you want to differentiate between structs, cells, lists, 
mlists, tlists, you cannot rely on typeof(), since for mlists and tlists 
they return the usertype, neither on type(), since it does not make the 
difference between cells and structs. I know there exist isstruct() and 
iscell(), but why do we have the same type number ??

S.





-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet



More information about the dev mailing list