[MacRuby-devel] Double module included

Dave Lee davelee.com at gmail.com
Thu May 10 14:09:25 PDT 2012


Hi,

Can anyone tell me, is this a MacRuby bug?

module A; end
module B; include A; end
class C; include B; end
p C.ancestors

in Ruby 1.9.3 the results are:

[C, B, A, Object, Kernel, BasicObject]

and in MacRuby 0.11 the results are:

[C, B, A, A, NSObject, Kernel]

Why is the A module included twice?

thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120510/0a1f5ac8/attachment.html>


More information about the MacRuby-devel mailing list