General

Profile

Nevir (Ian MacLeod)

  • Login: Nevir
  • Email: ian@nevir.net
  • Registered on: 07/01/2011
  • Last sign in: 12/26/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 1 2

Activity

02/23/2013

11:22 AM Ruby Bug #921: autoload is not thread-safe
Apologies in advance if this is the wrong place to get clarification:
It's been widely circulated that autoload is deprecated - http://www.ruby-forum.com/topic/3036681 - does this patch change that stance?
I ask because autoload still ...
Nevir (Ian MacLeod)

01/07/2013

10:25 AM Ruby Feature #7657: Array#& doesn't accept Enumerables
Let me see if I understand the implicit conversion cases:
* If an object implements #to_ary, #to_str, etc - it is asserting that it is close enough to the desired type in behavior that we don't need to perform an explicit coercion?
* I....
Nevir (Ian MacLeod)

01/06/2013

09:02 AM Ruby Feature #7657: Array#& doesn't accept Enumerables
Err, I mean it looks like it's similar to http://bugs.ruby-lang.org/issues/1028 Nevir (Ian MacLeod)
09:00 AM Ruby Feature #7657 (Assigned): Array#& doesn't accept Enumerables
This seems similar to http://bugs.ruby-lang.org/issues/6923
Example:
irb(main):001:0> class Thing
irb(main):002:1> include Enumerable
irb(main):003:1> def each(*args, &block)
irb(main):004:2> [1,2,3,4,5]....
Nevir (Ian MacLeod)

12/28/2012

05:57 AM Ruby Bug #7626: Bizarre Array#fetch behavior with a block when index is out of bounds
Oh! It's a block form of `default` - I get it now. Disregard! Nevir (Ian MacLeod)
05:53 AM Ruby Bug #7626: Bizarre Array#fetch behavior with a block when index is out of bounds
Why would you need to call fetch with a block if you already know the index is out of range? You already have the index you're calling with... Nevir (Ian MacLeod)
03:46 AM Ruby Bug #7626 (Rejected): Bizarre Array#fetch behavior with a block when index is out of bounds
This also occurs on Ruby 1.8.
First, the example, taken almost directly from the docs (except the docs only describe the fetch(4) case):
irb(main):001:0> a = [11, 22, 33, 44]
=> [11, 22, 33, 44]
irb(main):002:0> a.fetch(0) { |i| ...
Nevir (Ian MacLeod)

04/28/2012

01:07 AM Ruby Bug #4044: Regex matching errors when using \W character class and /i option
One additional note is that this only seems to occur when `\W` is in a character group:
~~~
➜ ruby -ve '("a".."z").each {|ch| p(/\W/i.match(ch)) }'
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin12.0.0]
nil
nil
nil
n...
Nevir (Ian MacLeod)

Also available in: Atom