=begin rb_funcall2 fails to pass a block; rb_funcall_passing_block must be used instead. string.c needed it (http://redmine.ruby-lang.org/issues/show/3792), and I need it as well. === test_relay.rb
Yusuke Endoh: > However, it might be considered a bug for `Kernel#eval` to ignore > ... Yes, thanks. Redmine doesn't have a category for bugs that are fixed by a feature request :). As Rocky explains there are some deeper issues invo...quix (James M. Lawrence)
Yusuke Endoh: >> Since source_location claims to be "the ruby source filename and line > ... Did you misunderstand? It's not my expectation--the next sentence said it was wrong, and indeed I rely on the current behavior. My expecta...quix (James M. Lawrence)
> Why do you think only a binding location as a problem? The initial problem I encountered was ~~~ruby eval %{def g ; end}, nil, "(eval)", 99 p method(:g).source_location #=> ["(eval)", 99] eval %{def f ; end}, binding, "(eval...quix (James M. Lawrence)
Thank you for that detailed explanation. The problem for me is the connection to `source_location`, which should be usable by tools. Shouldn't `source_location` give the file and line of a method or block definition? If so then `sou...quix (James M. Lawrence)