Project

General

Profile

ActionsLike0

Feature #3768

closed

Constant Lookup doesn't work in a subclass of BasicObject

Added by trans (Thomas Sawyer) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
-
[ruby-core:31956]

Description

=begin
ruby-1.9.2-p0 > module M
ruby-1.9.2-p0 ?> end
=> nil
ruby-1.9.2-p0 > class X < BasicObject
ruby-1.9.2-p0 ?> include M
ruby-1.9.2-p0 ?> end
NameError: uninitialized constant X::M
from (irb):4:in <class:X>' from (irb):3 from /home/trans/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in '
=end


Related issues 1 (0 open1 closed)

Related to Ruby - Bug #5067: BasicObject's constant lookup documentationClosed07/21/2011Actions
#1

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to matz (Yukihiro Matsumoto)
#2

Updated by matz (Yukihiro Matsumoto) over 14 years ago

  • Status changed from Assigned to Rejected
#11

Updated by matz (Yukihiro Matsumoto) almost 14 years ago

  • Tracker changed from Bug to Feature
ActionsLike0

Also available in: Atom PDF