Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Scilab > types > typename

typename

associe un nom à un type de variable

Séquence d'appel

[indices, onames] = typename()

Paramètres

indices

vecteur colonne d'entiers, les codes des types de variables

onames

vecteur colonne de chaînes de caractères : nom des codes de surcharge associés aux différents types de données.

Description

typename renvoie les informations associées aux types de données déjà définis.

La surcharge des opérateurs et primitives utilise des noms formels associés à chaque type de variable pour former les noms des fonctions de surcharge (voir overloading). typename peut être utilisé pour gérer ces noms pour les types natifs de variables (les noms formels pour les types tlist ou mlist sont définis autrement. Pour ceci, voir overloading).

Exemples

[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"

Voir aussi

  • type — Retourne le type d'un objet Scilab
  • typeof — type explicite ou code de surcharge d'un objet Scilab
  • overloading — display, functions and operators overloading capabilities
  • tlist — Objet Scilab. Définition d'une liste typée
  • mlist — Objet Scilab, définition d'une liste typée
Report an issue
<< type types typeof >>

Copyright (c) 2022-2023 (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:
Mon Jan 03 14:33:05 CET 2022