Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.0.0 - English


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:   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 >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Oct 24 14:30:01 CEST 2023