Skip to content
Tcl Source Code Check-in [f77a502eb6]
Login

Check-in [f77a502eb6]

Overview
Comment:V16o 1. A variant whose type is a product is constructed via its fields. ``` set {segment.lien}s {cible:}$url {contenu:}$segs ;# labeled, order-independent, defaults set {segment.lien}s $url $segs ;# positional set {segment}s(lien.(cible,contenu)) $url $segs ;# your syntax, via the sum set {segment}s($v.($fields)) {*}$values ​​ ;# computed ``` The first step of the path selects the variant. All paths must specify the same variant; otherwise, the error "a value of segment has one variant" is raised. A path may also traverse a sum located within a product field: `set {P}r(n.i,m) 4 5`. The messages refer to `segment.lien` rather than `prod<cible:string;…>`. 2. `type def NAME` without a definition returns the definition, using the `type def` syntax: ``` type def segment.lien ;# {string}cible; {list.segment}contenu type def pt ;# {double}x ?= 0; {double}y type def pt.x ;# double ``` The output text can be parsed back in its original form—a property verified by the test suite. Variants of a sum are listed in their internal (sorted) order, and options such as `-strict` are not included in the definition.
Timelines: family | ancestors | descendants | both | tip-764_tcl90
Files: files | file ages | folders
SHA3-256: f77a502eb6a1f12fe24756c64f87d3b25a9cafb60ebcaea6fad54bc2887e6ac0
User & Date: Florentis on 2026-11-04 10:46:42.535
Other Links: branch diff | manifest | tags
Context
2026-11-05
08:59
Version 16p adds a field to the `Proc` structure. It allows for the typing of both the return value ... check-in: 1508c3d76a user: Florentis tags: tip-764_tcl90
2026-11-04
10:46
V16o 1. A variant whose type is a product is constructed via its fields. ``` set {segment.lien}s {c... check-in: f77a502eb6 user: Florentis tags: tip-764_tcl90
08:32
What v16n introduces: `type is {disjoint?}S` returns the pairs of variants that can accept the same ... check-in: 43c57f18b6 user: Florentis tags: tip-764_tcl90
Changes