associates a name to variable type
[indices, onames] = typename()
an integer column vector: the types codes of each defined data types.
a column vector of strings: overloading codes associated to types.
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).
[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: 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"