General

Profile

Eregon (Benoit Daloze)

  • Login: Eregon
  • Registered on: 07/30/2009
  • Last sign in: 05/04/2026

Issues

open closed Total
Assigned issues 2 66 68
Reported issues 32 198 230

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

Today

09:08 PM Ruby Bug #22020: Inner call node without all arguments returned by RubyVM::AbstractSyntaxTree.of for call with a block
My motivation here is I would like to implement `Thread::Bactrace::Location#source_range`.
For this to work in `--parser=parse.y` mode it needs to return the same start/end line/column as Prism in all cases of `RubyVM::AbstractSyntaxTre...
Eregon (Benoit Daloze)
09:02 PM Ruby Bug #22020: Inner call node without all arguments returned by RubyVM::AbstractSyntaxTree.of for call with a block
The current locations are like this:
```
foo(1, 2, kw: :arg) { 123 }
|---------ITER------------|
|------FCALL------| |SCOPE|
```
When `foo` does not exist, it's a `NoMethodError`, and `RubyVM::AbstractSyntaxTree.of e.backtrace_locations...
Eregon (Benoit Daloze)
08:19 PM Ruby Bug #22021 (Rejected): Array#delete_if may delete wrong object if array has been altered already
I think this is safe to reject, I think it's not feasible to change this.
One should avoid mutating the Array while iterating, otherwise this kind of behavior is expected.
Eregon (Benoit Daloze)
08:16 PM Ruby Bug #22021: Array#delete_if may delete wrong object if array has been altered already
IMO it's not reasonable for `Array#delete_if` to do anything else than what it already does.
How can `Array#delete_if` know which element you deleted and whether it should delete or not?
The block returns true for the second 2nd block ca...
Eregon (Benoit Daloze)
03:15 PM Ruby Revision b583dd68 (git): Fix typo and improve docs of Exception#exception
Eregon (Benoit Daloze)

05/03/2026

08:08 PM Ruby Bug #22020 (Open): Inner call node without all arguments returned by RubyVM::AbstractSyntaxTree.of for call with a block
```ruby
begin
foo(1, 2, kw: :arg) { 42 }
rescue => e
pp RubyVM::AbstractSyntaxTree.of e.backtrace_locations[0]
end
```
```
$ ruby --parser=parse.y rubyvm_ast_node_id_loc.rb
(FCALL@2:2-2:21 :foo
(LIST@2:6-2:20 (INTEGER@...
Eregon (Benoit Daloze)
11:40 AM Ruby Feature #21953: Allow accessing unshareable objects within a Ractor-local Ruby Box
@tikkss I think there is an issue with your accounting of memory because it doesn't match the RSS of the worker process.
This is running your example as-is.
```
$ ruby -v
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [x86_64-linux]...
Eregon (Benoit Daloze)

05/02/2026

02:05 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
Yes Eregon (Benoit Daloze)
11:19 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
Eregon (Benoit Daloze) wrote in #note-10:
> I'm not sure if [@matz (Yukihiro Matsumoto)](/users/13) made his mind on: Start position: from the `p` of `proc`? Or from the `{`?
I confirmed with both @mame and @matz, and matz said it sh...
Eregon (Benoit Daloze)

04/29/2026

08:43 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
For
```ruby
l = -> x, y {
x + y
}
l.call(1)
```
ErrorHighlight shows:
```
test.rb:1:in 'block in <main>': wrong number of arguments (given 1, expected 2) (ArgumentError)
caller: test.rb:5
| l.call(1)
^^^^...
Eregon (Benoit Daloze)

Also available in: Atom