General

Profile

UlyssesZhan (有丘 詹)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 5 5

Activity

02/12/2021

09:27 AM Ruby master Bug #17623 (Closed): irb starts with some local variables already defined
``` ruby
irb(main):001:0> a = 1
=> 1
irb(main):002:0> def f = a
=> :f
irb(main):003:0> f
=> "D:/Ruby30-x64/lib/...
UlyssesZhan (有丘 詹)

04/21/2020

10:37 AM Ruby master Bug #16797: Array#flatten not checking `respond_to? :to_ary`
nobu (Nobuyoshi Nakada) wrote in #note-1:
> Read the error message.
>
> ```
> -:4:in `flatten': can't convert Ob...
UlyssesZhan (有丘 詹)

04/17/2020

10:04 AM Ruby master Bug #16797 (Rejected): Array#flatten not checking `respond_to? :to_ary`
```ruby
def (a = Object.new).method_missing(...)
Object.new
end
[a].flatten # TypeError
```
It should check w...
UlyssesZhan (有丘 詹)
08:23 AM Ruby master Feature #16796 (Rejected): Assigning local variables when using `case when regexp`
I want to use
```ruby
case "str"
when /s(?<mid>.)r/
p mid
end
```
instead of
```ruby
case
when /s(?<mid>....
UlyssesZhan (有丘 詹)

02/09/2020

07:59 AM Ruby master Bug #16617 (Closed): I can have instance methods bound to objects which are not their owner
Usually, an UnboundMethod can only be bound to objects of its owner. However, sometimes the limitations can be circum... UlyssesZhan (有丘 詹)

08/16/2019

08:34 AM Ruby master Bug #16107 (Closed): Module#refine and Module#using behaved unexpectedly
The issue happened when I tried to run the code below:
``` ruby
# Main.rb
class A
end
class B
end
module M1
...
UlyssesZhan (有丘 詹)

Also available in: Atom