diff options
author | sebres <sebres@users.sourceforge.net> | 2024-03-11 15:14:51 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2024-03-11 15:14:51 (GMT) |
commit | a29e93afaa229c50ce3c9ab8cb5ff6785b68bb1b (patch) | |
tree | 2e8e98b4deb4ca20cdbd7fd8daf2f980042a46f2 /library/init.tcl | |
parent | 58bfbceed1a443cb3a716210a76fe16a40302db4 (diff) | |
download | tcl-a29e93afaa229c50ce3c9ab8cb5ff6785b68bb1b.zip tcl-a29e93afaa229c50ce3c9ab8cb5ff6785b68bb1b.tar.gz tcl-a29e93afaa229c50ce3c9ab8cb5ff6785b68bb1b.tar.bz2 |
load clock-stubs dynamically with namespace unknown (no auto-index needed)
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/init.tcl b/library/init.tcl index 2a2391d..5eb5dfc 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -120,6 +120,17 @@ if {[interp issafe]} { uplevel 1 [info level 0] } + + # Auto-loading stubs for 'clock.tcl' + + namespace eval ::tcl::clock { + proc _load_stubs args { + namespace unknown {} + ::source -encoding utf-8 [::file join [info library] clock.tcl] + tailcall {*}$args + } + namespace unknown ::tcl::clock::_load_stubs + } } # Conditionalize for presence of exec. |