<< type types typeof >>

Scilab Help >> Scilab > types > typename

typename

associates a name to variable type

Syntax

[types [ [,names]]=typename()

Arguments

types

an integer column vector: the types codes of each defined data types.

names

a column vector of strings: the names associated to type codes.

Description

The function and operator overloading make use of a formal name associated to data types to form the name of the overloading function (see overloading). The typename can be used to handle this formal names for hard coded data types (the tlist or mlist coded data types formal names are defined in another way, see overloading).

typename returns information on defined data types.

Examples

[typs,nams]=typename();
disp("First type (double) : " + string(typs(1)) + " / " + nams(1));

See also


Report an issue
<< type types typeof >>