[Scilab-Dev] type of structs and cells

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


Le 12/09/2018 à 17:02, Stéphane Mottelet a écrit :
> 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://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/#/c/20491/ 
>
>
> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/#/c/19114/ 
>
>
> that cells 
and structs
> 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