Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Scilab > types > typename

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
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Jul 20 11:10:40 CEST 2021