From: Brian Candler Date: 2008-10-11T04:14:49+09:00 Subject: Re: Thread: super should be first line or last line? Christopher Dancy wrote: > I've simply worked around the problem. I wanted the subclassed thread > simply to hold much more personal info( if you will ) related to that > particular's threads behavior/action with in the environment its > running. There are many of threads going at any one time, and the info > within each one is both different and needed for each. Another option to consider is using thread-local variables, rather than instance variables in the thread object itself. t = Thread.new { Thread.current[:foo] = "bar" } t.join puts t[:foo] -- Posted via http://www.ruby-forum.com/.