Open GoogleCodeExporter opened 9 years ago
TOPLEVEL_BINDING exists in 1.8.2, but Ruby.NET doesn't have it yet.
The following patch is wrong but it's probably a start. It's wrong because, if
I
understand correctly, at that point in the code the toplevel frame is not known.
Index: src/RubyRuntime/Runtime/Inits.cs
===================================================================
--- src/RubyRuntime/Runtime/Inits.cs (revision 87)
+++ src/RubyRuntime/Runtime/Inits.cs (working copy)
@@ -151,6 +151,9 @@
Init_marshal();
Init_version();
+ // DOES NOT WORK, the null is wrong
+ Variables.rb_define_global_const("TOPLEVEL_BINDING", new
Binding(null,
Object.ruby_top_self));
+
Init_Prog();
// BBTAG: need to set default visibility to private
Original comment by sason...@gmail.com
on 13 Sep 2007 at 4:51
Original issue reported on code.google.com by
djl_davi...@rifraf.net
on 11 Sep 2007 at 1:20