[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

What happened when i invoke Thread.current.stop

Jason Yuan

12/24/2007 12:21:00 PM


th1 = Thread.new {
Thread.current.stop # it should be Thread.stop
puts "i am running"
}

th1.run # some error

I know it should be Thread.stop, bu t anyone can tell me why?

thanks for the help!