banister / include_complete

Fixing the limitations in traditional Module#include
19 stars 0 forks source link

Need to add proper compatibility with traditional Module#include #2

Closed banister closed 13 years ago

banister commented 13 years ago

Currently causes segfaults in the current situation:

module M;end
module N; include M; end
class C; real_include N; end

why? Cos the ICLASS of M in N is missing a singleton class, and its klass is the actual module M which is probably causing difficulties with real_include which assumes that the klass pointer is a singleton, not an actual module

banister commented 13 years ago

done. Patched Module#include -- so include works on modules that have real_included; also patched real_include so it works on modules that have Module#included, see version 0.1.9