Artifact d62dd8af34c5ff2708c7d1b3b0231d02c6b6f8140b204899f527e93caab6a289:
- File typeparse/exemples/mise_au_point/pas_a_pas.tcl — part of check-in [6ca31d8f94] at 2026-11-06 15:15:42 on branch tip-764_tcl90 — annotation as debug tool (user: Florentis, size: 408) [annotate] [blame] [check-ins using]
# Le pas à pas par une note : tclsh pas_a_pas.tcl, puis à l invite c, s, p p, r... (h : aide) type def pt {{double}x; {double}y} proc {double}norme {{pt}p} { set x2 [expr {$p(x) ** 2}] return [expr {sqrt($x2 + [lindex $p 1] ** 2)}] } proc chemin {L} { set s 0.0 foreach p $L { set s [expr {$s + [norme $p]}] } return $s } type debug on set P {@step}{3.0 4.0} chemin [list $P {1.0 0.0}]