Difference between revisions of "Le langage Tcl"

From Base de connaissances eggdrops & TCL
Jump to: navigation, search
(Informations sur l'environnement système)
(Contrôles)
Line 21: Line 21:
  
 
==Contrôles==
 
==Contrôles==
[[if]] [[switch]] [[for]] [[Incr%C3%A9mentation_et_D%C3%A9cr%C3%A9mentation|incr]] [[while]] [[foreach]] [[break]] [[continue]]
+
[[if]] [[switch]] [[for]] [[Incr%C3%A9mentation_et_D%C3%A9cr%C3%A9mentation|incr]] [[while]] [[foreach[dav34_foreach]] [[break|dav34_break]] [[continue|dav34_continue]]
  
 
==Entrées-Sorties==
 
==Entrées-Sorties==

Revision as of 12:27, 9 November 2007

A lire avant tout: les 11 règles du Tcl

Eye.png Cet article est en cours de traduction, n'hésitez pas à aider

Variables

set array unset

Calculs numériques

expr info functions

Listes

list llength lindex lrange linsert lreplace lappend lsearch concat split join lsort lrepeat lset

Chaines de caractères

string append encoding

Dictionnaires

dict

Procédures

proc return global uplevel info args info default info body info commands info procs info globals info locals info vars info level

Gestion des erreurs

return code error error catch $errorCode $errorInfo

Programmation

source rename namespace variable $argc $argv

Contrôles

if switch for incr while [[foreach[dav34_foreach]] dav34_break dav34_continue

Entrées-Sorties

open exec puts flush gets read eof close socket seek tell fconfigure fblocked fcopy

Fichiers

cd pwd glob file file atime file attributes file channels file copy file delete file dirname file executable file exists file extension file isdirectory file isfile file join file link file lstat file mkdir file mtime file nativename file normalize file owned file pathtype file readable file readlink file rename file rename file rootname name file separator file size file split file stat file system file tail file type file volumes file writable

Exécution asynchrone

after update vwait fileevent bgerror trace

Gestion du temps

clock time

Sous-interpréteurs

interp Safe Base eval subst

Expressions régulières

regexp regsub re_syntax

Format et conversions

format scan binary

Chargement de code binaire

load unload info sharedlibextension info loaded

Informations sur l'environnment processeur

$tcl_platform(byteOrder) $tcl_platform(wordSize)

Informations sur l'environnement système

$env info hostname dav34_pid $tcl_rcFileName

Informations sur le programme

info nameofexecutable $argv0 info script $tcl_interactive

Informations sur la version de Tcl

info patchlevel info tclversion $tcl_version $tcl_patchLevel

Contrôle du déverminage

$tcl_traceExec $tcl_traceCompile memory trace tcltest

Recherche de mots

tcl_endOfWord tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore

Définition d'un mot

$tcl_wordchars $tcl_nonwordchars

Divers

info exit http