Project

General

Profile

Actions

Bug #12089

closed

Raise not stable NameError

Added by alpaca-tc (Hiroyuki Ishii) almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.3.0
Backport:
[ruby-dev:49498]

Description

Is this intentional?

irb(main):001:0> Object.const_get('A')
NameError: uninitialized constant Object::A
irb(main):002:0> :A
=> :A
irb(main):003:0> Object.const_get('A')
NameError: uninitialized constant A
Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Status changed from Open to Closed

Applied in changeset r53875.


object.c: fix error message

  • object.c (rb_mod_const_get): make error message at uninterned
    string consistent with symbols. [ruby-dev:49498] [Bug #12089]

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Backport set to 2.3: REQUIRED
Actions #3

Updated by usa (Usaku NAKAMURA) almost 9 years ago

  • Related to Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる added
Actions #4

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Related to deleted (Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる)

Updated by naruse (Yui NARUSE) over 8 years ago

  • Backport changed from 2.3: REQUIRED to 2.3: DONE

ruby_2_3 r54408 merged revision(s) 53875.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0