Skip to content
Tcl Source Code Artifact [5bd9e27e46]
Login

Artifact [5bd9e27e46]

Artifact 5bd9e27e4695909e9e50dc82295fbc2b4c0a9742e77e4cb01f0a5fc61da562e8:


type def p2 {{string}nom ?= "?"; {int}age ?= 3; {string}ville = "Lyon"}
set {p2}a {p2/nom}Jean
puts $a
set {p2}b
puts $b
type def p3 {{string}nom ?= [string toupper abc]; {int}n ?= $::nn}
set nn 7
set {p3}c; puts $c
puts [catch {type def p4 {{int}x ?= abc}} m]; puts $m
type def d {dict(x, z?=0).int}
set {d}e x 1; puts $e