[#688] mkmf.rb - add files to clean and distclean targets — Michal Rokos <michal@...>

Hi,

25 messages 2003/01/15
[#722] Re: [RFC] mkmf.rb - add files to clean and distclean targets — Mathieu Bouchard <matju@...> 2003/01/20

On Thu, 16 Jan 2003, Michal Rokos wrote:

[#740] Re: [RFC] mkmf.rb - add files to clean and distclean targets — matz@... (Yukihiro Matsumoto) 2003/01/21

Hi,

[#724] Symbols: More Functionality Wanted — Ryan Pavlik <rpav@...>

I've been discussing this for a bit on #ruby-lang on OPN (or freenode or

23 messages 2003/01/20
[#728] Re: Symbols: More Functionality Wanted — matz@... (Yukihiro Matsumoto) 2003/01/20

Hi,

[#743] Re: Symbols: More Functionality Wanted — "Pit Capitain" <pit@...> 2003/01/21

On 20 Jan 2003 at 15:49, Yukihiro Matsumoto wrote:

[#767] Re: Symbols: More Functionality Wanted — Mathieu Bouchard <matju@...> 2003/01/22

[#768] Re: Symbols: More Functionality Wanted — dblack@... 2003/01/22

Hi --

[#779] Re: Symbols: More Functionality Wanted — Gavin Sinclair <gsinclair@...> 2003/01/23

On Thursday, January 23, 2003, 6:28:04 AM, dblack wrote:

local_variables: exception "NULL pointer given"

From: Markus Barchfeld <Markus.Barchfeld@...>
Date: 2003-01-06 20:41:57 UTC
List: ruby-core #681
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 Rselsheim


In This Thread

Prev Next