The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
The double inclusion problem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
The double inclusion problem Posted: Dec 9, 2005 6:59 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: The double inclusion problem
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

This is a limitation in Ruby's object model we might never get rid of, for efficiency reasons:

module A; end
class C; include A end
module B; def foo; "B#foo" end end
module A; include B end
class D; include A end

D.new.foo                                          # => "B#foo"
C.new.foo
# ~> -:8: undefined method `foo' for #<C:0xb7dee8b8> (NoMethodError)


Read more...

Read: The double inclusion problem

Topic: Tracing websites for fun (and profit?) Previous Topic   Next Topic Topic: MockOpenURI

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use