[#98621] Re: Function getlogin_r()'s protoype] — Bertram Scharpf <lists@...>
FYI,
3 messages
2020/06/02
[#98947] [Ruby master Feature#16986] Anonymous Struct literal — ko1@...
Issue #16986 has been reported by ko1 (Koichi Sasada).
66 messages
2020/06/26
[#98962] [Ruby master Bug#16988] Kernel.load loads file from current directory without '.' in path — misharinn@...
Issue #16988 has been reported by TheSmartnik (Nikita Misharin).
5 messages
2020/06/26
[#98969] [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings — marcandre-ruby-core@...
Issue #16994 has been reported by marcandre (Marc-Andre Lafortune).
7 messages
2020/06/26
[#100117] [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings
— matz@...
2020/09/25
Issue #16994 has been updated by matz (Yukihiro Matsumoto).
[ruby-core:98642] [Ruby master Bug#16932] `defined?` on refined method call returns non-nil even before `using`
From:
nobu@...
Date:
2020-06-03 13:55:46 UTC
List:
ruby-core #98642
Issue #16932 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #16932: `defined?` on refined method call returns non-nil even before `using`
https://bugs.ruby-lang.org/issues/16932
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* ruby -v: 2.8.0dev (2020-06-03T10:13:36Z master ee35a4dad3)
* Backport: 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED
----------------------------------------
From 2.0 to master (ee35a4dad3), the second `defined?(a.x)` before `using` returns truthy value.
``` ruby
class A
end
a = A.new
p defined?(a.x) #=> nil (OK)
m = Module.new do
refine(A) do
def x
end
end
end
a.x rescue p $! #=> NoMethodError: undefined method `x'
p defined?(a.x) #=> "method" (NG)
using m
p defined?(a.x) #=> "method" (OK)
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>