Artifact 3e2269c6d12ab9af5d3dd597300229a1e6426f63a1f5a4c582fa9c5a63f2fae9:
- File typeparse/tests_tclsh/t24_produit_champ.tcl — part of check-in [17b2667925] at 2026-11-27 11:49:20 on branch tip-764_tcl90 — v18a - label {/name} for fields, variants, named argument and canonic type ({S/s}5, {/s}5) - P/f give the type of the field f of the product P - S/v give the type of the variant v of the sum S - error messages label {celsius:} is now written {/celsius} a variant of a type is now written with /: temp/celsius. - The name of a variant can be a type name. (user: Florentis, size: 481) [annotate] [blame] [check-ins using]
type def paire {{string}nom = "?"; {int}age = 0} type def png {{string}signature = "SIG"; {list.string}chunks = {}} type def aut {{string}nom = "x"; {int}z = 1} set {paire}p {paire/nom}Jean puts "$p | [type get $p]" set {paire}q {paire/age}12 puts $q set {png}r {png/chunks}{a b} puts $r puts [catch {set {paire}s {paire/zz}x} m]; puts $m puts [catch {set {paire}s2 {aut/nom}x} m2]; puts $m2 proc f {} {set {paire}u {paire/nom}Zed; return $u} puts [f] set {paire}w Jean 3; puts $w