Popular recipes by Kristoffer Lawson http://code.activestate.com/recipes/users/129886/2001-09-18T15:35:38-07:00ActiveState Code RecipesA read procedure that allows background event processing (Tcl) 2001-09-18T15:35:38-07:00Kristoffer Lawsonhttp://code.activestate.com/recipes/users/129886/http://code.activestate.com/recipes/68419-a-read-procedure-that-allows-background-event-proc/ <p style="color: grey"> Tcl recipe 68419 by <a href="/recipes/users/129886/">Kristoffer Lawson</a> . </p> <p>Sometimes it is useful to be able to read from a channel but not hang while waiting for data to become available. While this can always be done with file events (and indeed they are used to implement this) it is occassionally easier to just read data and let other events handlers do their business while your "thread" waits for data. Thus bringing us closer to a thread programming model.</p> OO Meta-programing: method generation from a template (Tcl) 2001-09-08T10:37:50-07:00Kristoffer Lawsonhttp://code.activestate.com/recipes/users/129886/http://code.activestate.com/recipes/68378-oo-meta-programing-method-generation-from-a-templa/ <p style="color: grey"> Tcl recipe 68378 by <a href="/recipes/users/129886/">Kristoffer Lawson</a> (<a href="/recipes/tags/datastructures/">datastructures</a>). </p> <p>A straightforward routine to allow easy creation of new methods based on a previous template. The implementation language is XOTcl. This could also be considered a showcase for some XOTcl features.</p>