Scilab-Branch-6.1-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
typename
associates a name to variable type
Syntax
[indices, onames] = typename()
Arguments
- indices
an integer column vector: the types codes of each defined data types.
- onames
a column vector of strings: overloading codes associated to types.
Description
typename
returns information on defined data types.
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).
Examples
[ind, onames] = typename(); mprintf("Type index: %3d overloading code: ""%s""\n", ind, onames)
--> mprintf("Type index: %3d overloading code: ""%s""\n", ind, onames) Type index: 1 overloading code: "s" Type index: 2 overloading code: "p" Type index: 4 overloading code: "b" Type index: 5 overloading code: "sp" Type index: 6 overloading code: "spb" Type index: 7 overloading code: "msp" Type index: 8 overloading code: "i" Type index: 9 overloading code: "h" Type index: 10 overloading code: "c" Type index: 13 overloading code: "function" Type index: 14 overloading code: "f" Type index: 15 overloading code: "l" Type index: 16 overloading code: "tl" Type index: 17 overloading code: "ml" Type index: 128 overloading code: "ptr" Type index: 129 overloading code: "ip" Type index: 130 overloading code: "fptr"
See also
- type — returns the type of a Scilab object
- typeof — explicit type or overloading code of an object
- overloading — display, functions and operators overloading capabilities
- tlist — Scilab object and typed list definition.
- mlist — Scilab object, matrix oriented typed list definition
Report an issue | ||
<< type | types | typeof >> |