El Miércoles, 4 de Febrero de 2009, Iñaki Baz Castillo escribió: > So I wonder how could I use this class into a threaded program. A Ruby > singleton class is the Class itself, so if a running thread modifies > some Class attribute then all the other threads will see that change > (error!!!).
After asking it in Ruby-Talk maillist I've received a very good explanation: Singleton variable are read-only. The only writtable variable are local variables into Singleton methods. So all is Ok :) Thanks a lot and sorry for a bad bug report. -- Iñaki Baz Castillo _______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
