General

Profile

quix (James M. Lawrence)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 7 7

Activity

03/16/2011

07:17 AM Ruby Feature #4504: Add rb_funcall_passing_block to public API
=begin
=end
quix (James M. Lawrence)

03/15/2011

07:24 AM Ruby Feature #4504 (Closed): Add rb_funcall_passing_block to public API
=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

require './relay'

...
quix (James M. Lawrence)

02/09/2011

06:57 AM Ruby Bug #4379: [patch] eval(s, b, "(eval)", n) discards location
=begin

=end
quix (James M. Lawrence)

02/08/2011

05:23 AM Ruby Bug #4379: [patch] eval(s, b, "(eval)", n) discards location
=begin

=end
quix (James M. Lawrence)
03:19 AM Ruby Bug #4379 (Closed): [patch] eval(s, b, "(eval)", n) discards location
=begin
% ruby -e 'p eval("raise", nil, "(eval)", 999)'
-e:1:in `eval': (eval):999:in `<main>': (RuntimeError)
from -e:1:in `eval'
from -e:1:in `<main>'

With binding, location is ignored.

% ruby -e 'p eval("raise", bi...
quix (James M. Lawrence)
04:30 AM Ruby Feature #4347: Tracing cannot be re-enabled after callcc [patch]
=begin

=end
quix (James M. Lawrence)
03:22 AM Ruby Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)
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)

02/03/2011

01:57 PM Ruby Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)
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)
11:23 AM Ruby Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)
> 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)

02/02/2011

02:36 PM Ruby Bug #4352: [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)
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)

Also available in: Atom