dingoegret (dingo egret)
- Login: dingoegret
- Email: sephvelut@gmail.com
- Registered on: 12/23/2015
- Last sign in: 01/06/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/29/2015
-
07:33 PM Ruby Bug #11867: overriden constant instance variable mismatch
- Nobuyoshi Nakada wrote:
> Exactly.
> ...
I expected the latest constant to set its @b property. If not Class A, at the very least I expected Struct :a to get set. Is this not the intuitive thing to expect? People send arguments based o...
12/23/2015
-
07:34 PM Ruby Bug #11867 (Closed): overriden constant instance variable mismatch
- ~~~ruby
A = Struct.new(:a)
A.new(1)
#<struct A a=1>
class A
def initialize(b)
@b = b
end
end
A.new(1)
#<struct A a=nil>
~~~
Is this expected?