ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:37388] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
@ 2011-06-26  5:59 ` Yui NARUSE
  2011-06-29  4:41 ` [ruby-core:37654] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-06-26  5:59 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Yukihiro Matsumoto
Target version set to 1.9.3


----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Low
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37654] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
  2011-06-26  5:59 ` [ruby-core:37388] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A Yui NARUSE
@ 2011-06-29  4:41 ` Yukihiro Matsumoto
  2011-06-29  4:55 ` [ruby-core:37655] " Yukihiro Matsumoto
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yukihiro Matsumoto @ 2011-06-29  4:41 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yukihiro Matsumoto.


the patch should be applied before 1.9.3.

matz.
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Low
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37655] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
  2011-06-26  5:59 ` [ruby-core:37388] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A Yui NARUSE
  2011-06-29  4:41 ` [ruby-core:37654] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
@ 2011-06-29  4:55 ` Yukihiro Matsumoto
  2011-06-30 18:36 ` [ruby-core:37693] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yukihiro Matsumoto @ 2011-06-29  4:55 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yukihiro Matsumoto.


Sorry, this issue must be covered by #3423.

matz.
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Low
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37693] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2011-06-29  4:55 ` [ruby-core:37655] " Yukihiro Matsumoto
@ 2011-06-30 18:36 ` Yui NARUSE
  2011-06-30 18:37 ` [ruby-core:37694] [Ruby 1.9 - Bug #3422][Closed] " Yui NARUSE
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-06-30 18:36 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.

Status changed from Closed to Assigned
Priority changed from Low to Normal

r32283 breaks following codes:

module LangModuleSpecInObject
  module LangModuleTop
  end
end
include LangModuleSpecInObject
module LangModuleTop
end #=> NameError: uninitialized constant LangModuleTop


class BasicObject
end #=> NameError: uninitialized constant BasicObject
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37694] [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2011-06-30 18:36 ` [ruby-core:37693] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
@ 2011-06-30 18:37 ` Yui NARUSE
  2011-06-30 20:29 ` [ruby-core:37698] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-06-30 18:37 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.

Status changed from Assigned to Closed

Yui NARUSE wrote:
> r32283 breaks following codes:

Oops, r32342 fix this. thanks!
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Closed
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37698] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2011-06-30 18:37 ` [ruby-core:37694] [Ruby 1.9 - Bug #3422][Closed] " Yui NARUSE
@ 2011-06-30 20:29 ` Yui NARUSE
  2011-06-30 22:49 ` [ruby-core:37701] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-06-30 20:29 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.

Status changed from Closed to Assigned

Following code still doesn't work:

module LangModuleSpecInObject
  module LangModuleTop
  end
end
include LangModuleSpecInObject
p LangModuleTop
end
p LangModuleSpecInObject::LangModuleTop == LangModuleTop #=> false (it should be true)
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37701] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2011-06-30 20:29 ` [ruby-core:37698] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
@ 2011-06-30 22:49 ` Yukihiro Matsumoto
  2011-06-30 23:28 ` [ruby-core:37703] " Yui NARUSE
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yukihiro Matsumoto @ 2011-06-30 22:49 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yukihiro Matsumoto.


Can you elaborate?

If I remove "end" in the line 7, it works for me (otherwise, it was an syntax error).

matz.

----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37703] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2011-06-30 22:49 ` [ruby-core:37701] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
@ 2011-06-30 23:28 ` Yui NARUSE
  2011-07-10  6:18 ` [ruby-core:37957] " Motohiro KOSAKI
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-06-30 23:28 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.


Oh sorry, it must be:

module LangModuleSpecInObject
  module LangModuleTop
  end
end
include LangModuleSpecInObject
module LangModuleTop
end
p LangModuleSpecInObject::LangModuleTop == LangModuleTop
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:37957] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2011-06-30 23:28 ` [ruby-core:37703] " Yui NARUSE
@ 2011-07-10  6:18 ` Motohiro KOSAKI
  2011-08-20 10:02 ` [ruby-core:39032] " Motohiro KOSAKI
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Motohiro KOSAKI @ 2011-07-10  6:18 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Motohiro KOSAKI.


>Oh sorry, it must be:
>
>module LangModuleSpecInObject
>  module LangModuleTop
>  end
>end
>include LangModuleSpecInObject
>module LangModuleTop
>end
>p LangModuleSpecInObject::LangModuleTop == LangModuleTop

matz, could you please answer to Yui?


----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39032] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2011-07-10  6:18 ` [ruby-core:37957] " Motohiro KOSAKI
@ 2011-08-20 10:02 ` Motohiro KOSAKI
  2011-09-03  2:57 ` [ruby-core:39241] [Ruby 1.9 - Bug #3422][Closed] " Nobuyoshi Nakada
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Motohiro KOSAKI @ 2011-08-20 10:02 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Motohiro KOSAKI.


Matz, I think we need to decide either 1) revert r32283 or 2) fix naruse reported regression. Everybody know you are busy. But I believe 1.9.3 have no regression.....

----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39241] [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2011-08-20 10:02 ` [ruby-core:39032] " Motohiro KOSAKI
@ 2011-09-03  2:57 ` Nobuyoshi Nakada
  2011-09-03 15:16   ` [ruby-core:39251] " Magnus Holm
  2011-09-05 16:03 ` [ruby-core:39282] [Ruby 1.9 - Bug #3422] " Yui NARUSE
                   ` (5 subsequent siblings)
  16 siblings, 1 reply; 21+ messages in thread
From: Nobuyoshi Nakada @ 2011-09-03  2:57 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Nobuyoshi Nakada.

Status changed from Assigned to Closed


----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Closed
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39251] Re: [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
  2011-09-03  2:57 ` [ruby-core:39241] [Ruby 1.9 - Bug #3422][Closed] " Nobuyoshi Nakada
@ 2011-09-03 15:16   ` Magnus Holm
  2011-09-04 15:49     ` [ruby-core:39258] " KOSAKI Motohiro
  0 siblings, 1 reply; 21+ messages in thread
From: Magnus Holm @ 2011-09-03 15:16 UTC (permalink / raw
  To: ruby-core

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

On Sat, Sep 3, 2011 at 04:57, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:

>
> Issue #3422 has been updated by Nobuyoshi Nakada.
>
> Status changed from Assigned to Closed
>

Why is this issue closed? Is the current behaviour acceptable?

[-- Attachment #2: Type: text/html, Size: 525 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39258] Re: [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
  2011-09-03 15:16   ` [ruby-core:39251] " Magnus Holm
@ 2011-09-04 15:49     ` KOSAKI Motohiro
  2011-09-05 15:15       ` [ruby-core:39281] " Magnus Holm
  0 siblings, 1 reply; 21+ messages in thread
From: KOSAKI Motohiro @ 2011-09-04 15:49 UTC (permalink / raw
  To: ruby-core

> Why is this issue closed? Is the current behaviour acceptable?

Can you still reproduce this issue?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39281] Re: [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
  2011-09-04 15:49     ` [ruby-core:39258] " KOSAKI Motohiro
@ 2011-09-05 15:15       ` Magnus Holm
  2011-09-05 22:48         ` [ruby-core:39290] " KOSAKI Motohiro
  0 siblings, 1 reply; 21+ messages in thread
From: Magnus Holm @ 2011-09-05 15:15 UTC (permalink / raw
  To: ruby-core

> > Why is this issue closed? Is the current behaviour acceptable?
>
> Can you still reproduce this issue?
>

Not the original issue. But it seemed to me that this issue was left
open because it introduced other problems (discussed above). Now that
this one has closed, I'm wondering what happened to this new issue?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39282] [Ruby 1.9 - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (10 preceding siblings ...)
  2011-09-03  2:57 ` [ruby-core:39241] [Ruby 1.9 - Bug #3422][Closed] " Nobuyoshi Nakada
@ 2011-09-05 16:03 ` Yui NARUSE
  2012-10-24 19:53 ` [ruby-core:48207] [ruby-trunk " aef (Alexander E. Fischer)
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: Yui NARUSE @ 2011-09-05 16:03 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by Yui NARUSE.

ruby -v changed from - to ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]

nobu lazily closed this ticket without the revision reference: r33163.
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
http://redmine.ruby-lang.org/issues/3422

Author: Magnus Holm
Status: Closed
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:39290] Re: [Ruby 1.9 - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
  2011-09-05 15:15       ` [ruby-core:39281] " Magnus Holm
@ 2011-09-05 22:48         ` KOSAKI Motohiro
  0 siblings, 0 replies; 21+ messages in thread
From: KOSAKI Motohiro @ 2011-09-05 22:48 UTC (permalink / raw
  To: ruby-core

>> > Why is this issue closed? Is the current behaviour acceptable?
>>
>> Can you still reproduce this issue?
>>
>
> Not the original issue. But it seemed to me that this issue was left
> open because it introduced other problems (discussed above). Now that
> this one has closed, I'm wondering what happened to this new issue?

As Yui explained, nobu fixed and commited it into ruby_1_9_3 branch. so
I'm not thinking the regression above discussed disappeared. If you run
latest ruby_1_9_3 branch and find any issue, please let us know asap.

Thank you for paying attention our bugfixes effort.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:48207] [ruby-trunk - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (11 preceding siblings ...)
  2011-09-05 16:03 ` [ruby-core:39282] [Ruby 1.9 - Bug #3422] " Yui NARUSE
@ 2012-10-24 19:53 ` aef (Alexander E. Fischer)
  2012-10-24 23:03 ` [ruby-core:48209] [ruby-trunk - Bug #3422][Open] " kosaki (Motohiro KOSAKI)
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: aef (Alexander E. Fischer) @ 2012-10-24 19:53 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by aef (Alexander E. Fischer).


Could the following problem be related to this change? "Including namespace module through RSpec config in Ruby 1.9.3":http://stackoverflow.com/questions/13042298/including-namespace-module-through-rspec-config-in-ruby-1-9-3 

If so, wouldn't it be a better idea to revert this?
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
https://bugs.ruby-lang.org/issues/3422#change-31474

Author: judofyr (Magnus Holm)
Status: Closed
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 1.9.3
ruby -v: -


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:48209] [ruby-trunk - Bug #3422][Open] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (12 preceding siblings ...)
  2012-10-24 19:53 ` [ruby-core:48207] [ruby-trunk " aef (Alexander E. Fischer)
@ 2012-10-24 23:03 ` kosaki (Motohiro KOSAKI)
  2012-12-09 15:45 ` [ruby-core:50718] [ruby-trunk - Bug #3422][Assigned] " mame (Yusuke Endoh)
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 21+ messages in thread
From: kosaki (Motohiro KOSAKI) @ 2012-10-24 23:03 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by kosaki (Motohiro KOSAKI).

Status changed from Closed to Open


----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
https://bugs.ruby-lang.org/issues/3422#change-31475

Author: judofyr (Magnus Holm)
Status: Open
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 1.9.3
ruby -v: -


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:50718] [ruby-trunk - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (13 preceding siblings ...)
  2012-10-24 23:03 ` [ruby-core:48209] [ruby-trunk - Bug #3422][Open] " kosaki (Motohiro KOSAKI)
@ 2012-12-09 15:45 ` mame (Yusuke Endoh)
  2013-01-09  5:58 ` [ruby-core:51330] [ruby-trunk - Bug #3422] " shugo (Shugo Maeda)
  2013-01-10  0:36 ` [ruby-core:51338] [ruby-trunk - Bug #3422][Closed] " kosaki (Motohiro KOSAKI)
  16 siblings, 0 replies; 21+ messages in thread
From: mame (Yusuke Endoh) @ 2012-12-09 15:45 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Target version changed from 1.9.3 to 2.0.0

Matz, do you think that it should be changed again?
IMO, in principle, I don't think that it is a good idea to change the behavior so many times.

-- 
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
https://bugs.ruby-lang.org/issues/3422#change-34565

Author: judofyr (Magnus Holm)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: -


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:51330] [ruby-trunk - Bug #3422] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (14 preceding siblings ...)
  2012-12-09 15:45 ` [ruby-core:50718] [ruby-trunk - Bug #3422][Assigned] " mame (Yusuke Endoh)
@ 2013-01-09  5:58 ` shugo (Shugo Maeda)
  2013-01-10  0:36 ` [ruby-core:51338] [ruby-trunk - Bug #3422][Closed] " kosaki (Motohiro KOSAKI)
  16 siblings, 0 replies; 21+ messages in thread
From: shugo (Shugo Maeda) @ 2013-01-09  5:58 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by shugo (Shugo Maeda).

Assignee changed from matz (Yukihiro Matsumoto) to kosaki (Motohiro KOSAKI)

mame (Yusuke Endoh) wrote:
> Matz, do you think that it should be changed again?
> IMO, in principle, I don't think that it is a good idea to change the behavior so many times.

I'm not sure why this ticket has been reopened, but if it's because of the following comment, this ticket can be closed, because the request has already been rejected in #7213.

> Could the following problem be related to this change? "Including namespace module through RSpec config in Ruby 1.9.3":http://stackoverflow.com/questions/13042298/including-namespace-module-through-rspec-config-in-ruby-1-9-3 
> 
> If so, wouldn't it be a better idea to revert this?

Kosaki-san, why did you reopen this ticket?

----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
https://bugs.ruby-lang.org/issues/3422#change-35298

Author: judofyr (Magnus Holm)
Status: Assigned
Priority: Normal
Assignee: kosaki (Motohiro KOSAKI)
Category: core
Target version: 2.0.0
ruby -v: -


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ruby-core:51338] [ruby-trunk - Bug #3422][Closed] Object.const_get(:A, false) can access BasicObject::A
       [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
                   ` (15 preceding siblings ...)
  2013-01-09  5:58 ` [ruby-core:51330] [ruby-trunk - Bug #3422] " shugo (Shugo Maeda)
@ 2013-01-10  0:36 ` kosaki (Motohiro KOSAKI)
  16 siblings, 0 replies; 21+ messages in thread
From: kosaki (Motohiro KOSAKI) @ 2013-01-10  0:36 UTC (permalink / raw
  To: ruby-core


Issue #3422 has been updated by kosaki (Motohiro KOSAKI).

Status changed from Assigned to Closed

> Kosaki-san, why did you reopen this ticket?

Sorry, my memory was lost and I don't remember why. but I suspect your guess is right and we can close this ticket.

----------------------------------------
Bug #3422: Object.const_get(:A, false) can access BasicObject::A
https://bugs.ruby-lang.org/issues/3422#change-35308

Author: judofyr (Magnus Holm)
Status: Closed
Priority: Normal
Assignee: kosaki (Motohiro KOSAKI)
Category: core
Target version: 2.0.0
ruby -v: -


=begin
 From the documentation of Module#const_get(sym, inherit=true):
 
   If the constant is not defined or is defined by the ancestors and inherit is false, NameError will be raised.
 
 Yet, this works fine:
 
   BasicObject::A = 1
   Object.const_get(:A, false) # => 1
 
 While I haven't tested it, I believe the attached patch should fix the issue.
=end



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2013-01-10  0:48 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-3422.20100611041123@ruby-lang.org>
2011-06-26  5:59 ` [ruby-core:37388] [Ruby 1.9 - Bug #3422][Assigned] Object.const_get(:A, false) can access BasicObject::A Yui NARUSE
2011-06-29  4:41 ` [ruby-core:37654] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
2011-06-29  4:55 ` [ruby-core:37655] " Yukihiro Matsumoto
2011-06-30 18:36 ` [ruby-core:37693] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
2011-06-30 18:37 ` [ruby-core:37694] [Ruby 1.9 - Bug #3422][Closed] " Yui NARUSE
2011-06-30 20:29 ` [ruby-core:37698] [Ruby 1.9 - Bug #3422][Assigned] " Yui NARUSE
2011-06-30 22:49 ` [ruby-core:37701] [Ruby 1.9 - Bug #3422] " Yukihiro Matsumoto
2011-06-30 23:28 ` [ruby-core:37703] " Yui NARUSE
2011-07-10  6:18 ` [ruby-core:37957] " Motohiro KOSAKI
2011-08-20 10:02 ` [ruby-core:39032] " Motohiro KOSAKI
2011-09-03  2:57 ` [ruby-core:39241] [Ruby 1.9 - Bug #3422][Closed] " Nobuyoshi Nakada
2011-09-03 15:16   ` [ruby-core:39251] " Magnus Holm
2011-09-04 15:49     ` [ruby-core:39258] " KOSAKI Motohiro
2011-09-05 15:15       ` [ruby-core:39281] " Magnus Holm
2011-09-05 22:48         ` [ruby-core:39290] " KOSAKI Motohiro
2011-09-05 16:03 ` [ruby-core:39282] [Ruby 1.9 - Bug #3422] " Yui NARUSE
2012-10-24 19:53 ` [ruby-core:48207] [ruby-trunk " aef (Alexander E. Fischer)
2012-10-24 23:03 ` [ruby-core:48209] [ruby-trunk - Bug #3422][Open] " kosaki (Motohiro KOSAKI)
2012-12-09 15:45 ` [ruby-core:50718] [ruby-trunk - Bug #3422][Assigned] " mame (Yusuke Endoh)
2013-01-09  5:58 ` [ruby-core:51330] [ruby-trunk - Bug #3422] " shugo (Shugo Maeda)
2013-01-10  0:36 ` [ruby-core:51338] [ruby-trunk - Bug #3422][Closed] " kosaki (Motohiro KOSAKI)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).