Overview
| Artifact ID: | 8663d6aee644105640d419bcf64b49f8ef91bea5 |
|---|---|
| Ticket: | 2412068fffffffffffffffffffffffffffffffff
[source] is not yield-able |
| User & Date: | venksi on 2008-12-12 00:26:04 |
Changes
- icomment:
As a very temporary workaround (that my work for only me): rename ::source ::old_source proc ::source args { if {[llength $args] > 1} { uplevel 1 [linsert $args 0 ::old_source] } else { set fi [open [lindex $args 0]] set r [read $fi] close $fi uplevel 1 $r } } That takes care of my simple case where the users do not pass flags to source. But the proc must handle it because many tcl libraries do. This allows files which are sourced as just "source <name>" to be able to use yield. - login: "venksi"
- mimetype: "text/plain"
- username: "venksi"