Skip to content

Instantly share code, notes, and snippets.

# https://stackoverflow.com/questions/66201923/upvar-tcloo-and-next-explanation-of-perhaps-unexpected-behaviour
oo::class create C1 {
variable aDict
method addone {} {
dict incr aDict xx
}
method getADict {} {
return $aDict
}
}
@mrcalvin
mrcalvin / parProcess.tcl
Created October 7, 2020 09:41
::par::process
package require Thread
namespace eval ::par {
proc schedule {tp fh chunksize} {
variable jobs
variable done
lassign [chan pipe] pr pw