Hi!

I am new to the mailing list and I hope that the topic is appropriate 
and hasn't been discussed recently.
I am a member of the "ruby development tool" project (an eclipse plugin)
and write the debugger interface. Because of some limitations of ruby
1.6.7 on windows I moved on to the ruby 1.8 preview version and found
a bug (or a feature, if someone can explain it to me) when evaluating
"local_variables" inside a block, which is given to Thread.new:

 1:def testBlock
 2:  yield
 3:end
 4:
 5:testBlock {
 6:	a = 5
 7:	puts "block : local_variables : #{eval('local_variables')}"
 8:}
 9:
10:Thread.new  {
11:	a = 5
12:	begin
13:		puts "block : local_variables : #{eval('local_variables')}"
14:	rescue StandardError => bang
15:		puts "Exception: #{bang}"
16:	end
17:}

-- ruby 1.8.0 (2002-12-24) [i686-linux] --
block : local_variables : a
Exception: (eval):1:in `local_variables': NULL pointer given
--
 
-- ruby 1.6.7 (2002-03-19) [i386-linux] --
block : local_variables : a
block : local_variables : a
--

Is this "NULL pointer given" exception already known or does a workaround
exist?


thanks
Markus
--
Markus Barchfeld                    Tel: 0049-6142-794021
Helmholtzweg 11
65428 R?sselsheim