From: Julian Leviston Date: 2009-02-06T16:17:24+09:00 Subject: Re: Using a Class (not an instance) into threads Think when he said shared state he actually meant shared code. Maybe not. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 06/02/2009, at 5:34 PM, Simon Krahnke wrote: > * Iñaki Baz Castillo (14:44) schrieb: > >> 2009/2/4 Iñaki Baz Castillo : >>>> I did not look too closely but it seems that the shared state is >>>> used >>>> read only. You can easily verify yourself by simply freezing it >>>> and >>>> see whether you get errors from that. >>> >>> You are right! The only writtable variables are local variables >>> inside class >>> methods! >> >> Also, using a Class instead of instances is faster since there is no >> need of "initialize" for each usage, am I right? > > I don't quite understand that question. Classes are instances, too. > And > objects without state don't need an initialize method. > > mfg, simon .... l >