Dominik Bathon
7/19/2006 5:57:00 PM
On Wed, 19 Jul 2006 17:16:51 +0200, Brendan Baldwin
<ruby-forum@brendanbaldwin.com> wrote:
> Mauricio --
>
> The block implentation is pretty cool -- My problem is I was trying to
> modify Regexp#match for use with a production application at my current
> employer, which also uses the REXML library, that unfortunately uses $~
> vars all over and doesn't use blocks to get at them, so it breaks.
>
> And I'm constrained in not using set_trace_func here, so that's
> unfortunatlely out of the picture too.
Are C extension okay?
In that case you could use rb_backref_set() to achieve what you want.
Dominik