Project

General

Profile

Actions

Bug #8298

closed

Module include inconsistency

Added by Student (Nathan Zook) almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
1.8, 1.9, 2.0
[ruby-core:54472]

Description

It has been suggested that I report this as a violation of the object model:

module M ; end
module N ; end
class C ; include M ; end
module M ; include N ; end
c = C.new
c.extend M
d = class << c ; self ; end
d.ancestors
=>[N, C, M, Object, Kernel]

This has been this way for a while...

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0