--000e0cd11bcabbb8990474f508ef
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Oct 2, 2009 at 1:25 AM, Luc Heinrich <luc / honk-honk.com> wrote:

> On 2 oct. 2009, at 05:08, Ken Bloom wrote:
>
>  I guess threads just supress them in general.
>>
>> irb(main):001:0> Thread.start{raise NoMethodError}
>> #<Thread:0x7fe5ee8ce930 dead>
>> irb(main):002:0>
>>
>
> irb(main):001:0> Thread.start { raise NoMethodException }
> #<Thread:0x100577848 dead>
>
> irb(main):002:0> Thread.abort_on_exception  rue
> true
>
> irb(main):003:0> Thread.start { raise NoMethodException }
> (irb):3:in `irb_binding': uninitialized constant NoMethodException
> (NameError)
>        from (irb):3:in `start'
>        from (irb):3:in `irb_binding'
>        from /opt/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
>        from /opt/local/lib/ruby/1.8/irb/workspace.rb:52
>
> Or you can save the reference to the thread and join it:

irb(main):003:0> t  hread.start{raise NoMethodError}
#<Thread:0x7f5ee476a058 dead>
irb(main):004:0> t.join
NoMethodError: NoMethodError
    from (irb):3
    from (irb):4:in `join'
    from (irb):4
    from :0

--000e0cd11bcabbb8990474f508ef--