Artifact b0a264e409ebc928e59d12cadb5737550eb92888eef7cf3c059c9b61a74c8bee:
- File typeparse/doc/cartographie/sonde_interp.tcl — part of check-in [851d553982] at 2026-11-05 21:46:17 on branch tip-764_tcl90 — new atomicity rules : only scalar (int, double, string) are atomic. Products are containers, so they can unfold as lists (user: Florentis, size: 489) [annotate] [blame] [check-ins using]
# sonde_interp.tcl -- tension T4 : une valeur typée qui survit à # l'interpréteur qui a défini son type. Le descripteur de type est libéré avec # l'interpréteur ; la valeur garde un pointeur vers lui (lecture après # libération : valgrind la montre ; sans valgrind, le résultat est imprévisible). # valgrind tclsh sonde_interp.tcl interp create c c eval {type def zz {{int}a; {int}b}; set {zz}V 1 2} set v [c eval {set V}] interp delete c puts [type get $v] puts [llength $v]