Overview
| Artifact ID: | 1ef9f4d5f4ee1820721676ba05baa13f80cca964 |
|---|---|
| Ticket: | 793779ffffffffffffffffffffffffffffffffff
Include source files only once |
| User & Date: | mistachkin on 2003-08-26 05:55:00 |
Changes
- icomment:
Logged In: YES user_id=113501 This type of functionality does not need to be included in the core to be useful. proc sourceOnce { file } { upvar "1" sources sources if {![info exists sources([file normalize $file])]} then { # don't catch errors, since that may indicate # we failed to load it...? uplevel "1" [list source $file] # mark it as loaded since it was source'd with no error... set sources([file normalize $file]) "1" } } - login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"