General

Profile

0x0dea (D.E. Akers)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 8 10

Activity

02/29/2016

07:35 PM Ruby Bug #12128: Strings in `ARGV` are frozen
Be advised that you can say `ARGV.map!(&:+@)` if you really want to modify the elements in-place, but that's probably not the best idea. 0x0dea (D.E. Akers)

12/31/2015

04:24 AM Ruby Bug #11929: No programatic way to check ability to dup/clone an object
[This demonstration](https://eval.in/495653) should clarify the observed behavior. `Symbol`, `Fixnum`, and indeed every other numeric class inherit their `#dup` from `Kernel`, whose implementation does a sanity check before proceeding, t... 0x0dea (D.E. Akers)

12/20/2015

01:31 AM Ruby Bug #11850 (Closed): `define_method(:foo, &:bar)` segfaults irrespective of location or arguments.
`define_method(:foo, :bar.to_proc)` behaves as it did in previous versions of Ruby. 0x0dea (D.E. Akers)

11/19/2015

11:41 PM Ruby Feature #11717: Object#trap -- pass object to block and return result
Victor Shepelev wrote:
> Even if `#trap` will be implemented as a simple alias of `#instance_eval`...
If you did in fact know that you were essentially requesting an alias for `#instance_eval`, this was a remarkably roundabout way to...
0x0dea (D.E. Akers)
10:49 PM Ruby Feature #11717: Object#trap -- pass object to block and return result
You're looking for `#instance_eval`:
```ruby
'foo'.instance_eval { |obj| obj.size } # => 3
```
0x0dea (D.E. Akers)

11/11/2015

06:20 AM Ruby Bug #11674: `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
Well, this is very strange indeed. The problem does start at 11 keyword arguments and continues to present all the way up to 25, but then 26 to 35 keyword arguments are all kosher, then 36 to 42 have the problem, and then it doesn't happ... 0x0dea (D.E. Akers)

11/05/2015

10:09 PM Ruby Feature #11286: [PATCH] Add case equality arity to Enumerable's sequence predicates.
I've come to realize that it might not be entirely clear what is being proposed. In essence, all of the following examples feel very "Ruby" and should, in my opinion, Just Work.
```ruby
[1, 3.14, 2ri].all?(Numeric) # => true
if sh...
0x0dea (D.E. Akers)
02:39 AM Ruby Bug #11655: Can't refine Object.const_missing
Nobu? Given the behavior observed above, I must maintain that this is a bug worth reopening. If I am mistaken in that conclusion, could you please take a moment to clarify your assertion that the Refinements spec prohibits implicit invoc... 0x0dea (D.E. Akers)

11/04/2015

02:11 PM Ruby Bug #11655: Can't refine Object.const_missing
Nobuyoshi Nakada wrote:
> It's a spec.
> ...
How does that square with the behavior observed below?
```ruby
using Module.new {
refine Object do
def method_missing(*)
42
end
end
}
p foo # => 42
```
0x0dea (D.E. Akers)
12:32 PM Ruby Bug #11655 (Rejected): Can't refine Object.const_missing
```ruby
TracePoint.new(:c_call) { |tp|
if tp.method_id == :const_missing
puts "top-level const_missing is #{tp.self}'s"
end
}.enable { Foo rescue 1 }
# => top-level const_missing is Object's
module M
refine Object.sin...
0x0dea (D.E. Akers)

Also available in: Atom