[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>

Having taken upon me the task to provide a Windows build for

24 messages 2005/04/20
[#4746] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Austin Ziegler <halostatue@...> 2005/04/20

On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:

[#4747] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/20

Hi Austin,

[#4762] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/24

Hi,

[#4783] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:

[#4787] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/25

Hi,

[#4794] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,

[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>

irb(main):058:0> a = /\[([^]]*)\]/

13 messages 2005/04/22

set_trace_func since CVS 2005-04-04: No return events?

From: =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...>
Date: 2005-04-04 15:31:27 UTC
List: ruby-core #4662
Moin.

Since ruby-breakpoint does not seem to work with Debian Unstable's Ruby 
which has merged back CVS changes I began looking into that issue with 
the kind help of Akira Yamada.

It appears that the CVS Head does no longer generate return events (in 
some circumstances?) where Ruby 1.8.2 still did. This breaks my 
implementation of Binding.of_caller which in turn causes the 
ruby-breakpoint library not to work anymore.

Is this by design?

I've attached the Binding.of_caller code to this mail, here is how it 
would be used:

def trace(var)
   Binding.of_caller do |context|
     value = eval(var.to_s, context)
     puts ">> #{var} = #{value.inspect}"
   end
end

x = 5
trace :x
x *= 2
trace :x
x **= 3
trace :x

trace "x*x"

puts "Done!"

Regards,
Florian Gross

Attachments (1)

binding_of_caller.rb (2.74 KB, application/x-ruby)

In This Thread

Prev Next