Artifact dc06f70b257b0c80b901bda99cb2774d7e15d3e709288db211f5bb77059a223d:
- File typeparse/tests_tclsh/t121_type_map.out — part of check-in [83801ad6ad] at 2026-11-24 09:32:02 on branch tip-764_tcl90 — typeparse v17o: block-wise type map, path windows, views on object lists - type map: evaluated in blocks of 256 elements when the expression computes in doubles only (columns gathered, each operation applied to the whole block); flagged elements are evaluated again one by one, so results stay identical to expr. TCL_TYPE_NOBLOCK=1 to compare. - Windows $L((s0,s1,...):end:step): one column per start, same step, complete windows only, for reading and writing (set L((0,1)::2) $X $Y). - Ranges of a typed list of objects are views (shared base, start, step, count), without touching the elements; type map reads them in their base. - Typed columns are written in place (objects, cells, num), without checking the elements again. - set {T}x $v with v already of type T keeps the value as is (instead of unfolding and checking it again); fast creation of list.num. - $L(a:b:c) outside procedures uses the same direct reads as compiled code. - Fix: a fully substituted index stays a single name in the fast paths too ($L($s) with s = 1:3 looks for the element 1:3). - Tests t125, t126. New example exemples/tcllib_geometry/COMPARAISON.md: the geometry chain in ten variants, from plain Tcl to fully typed C. No core patch. (user: Florentis, size: 838) [annotate] [blame] [check-ins using]
colonnes : 6.0 15.0 24.5 {list.double}{6.0 15.0 24.5} entiers : {list.int}{2 4 6} deux listes : 11 41 91 variable : 0.5 1.0 1.5 division entière : 3 -4 -4 par zéro (flottant) : 1.0 Inf 0.5 par zéro (entier) : divide by zero débordement : 9223372036854775808 2 round : 3 -3 3 ?: : -1 -1 1.7320508075688772 chaînes (expr) : {list.int}{1 2 3} après : x=ccc en cases : 0.25 2.25 6.25 corps : type map: the body must be an expression in parentheses, {(...)} longueurs : type map: the lists have different lengths colonnes : type map: {x y z} needs a list of 3 columns, not 2 valeur : cannot use non-numeric string "a" as left operand of "*" somme : 12 0.6000000000000001 0 somme (grand entier) : 9223372036854775808 tranches : {list.double}{1.0 3.0} {list.double}{2.0 4.0 6.0} écriture d'une tranche typée : 10.0 2.0 30.0 4.0 50.0 6.0