ycl

Artifact [487c7f3b03]
Login

Artifact [487c7f3b03]

Artifact 487c7f3b0398573c249b992c151d294a3792fdb7:


#! /bin/env tclsh

package require {ycl flow step}

variable doc::configure [[namespace current] $ doc::configure]
dict set doc::configure args target [dict merge [
	dict get $doc::configure args target] {
		default {namespace tail $_}
		process {
			$_ $ target [uplevel [namespace which normalize] $target]}
	}
]

proc init {_ args} {
	uplevel 1 [list $_ .switch init {*}$args]
	return $_
}
.my .method init

proc exists {_ target} {
	expr {[info exists $target]}
}
.my .method exists

proc signature _ {
	namespace upvar $_ target target
	set target
}
.my .method signature