Hi, I'm trying to fix issues below. - #619: Constant scope in a block is determined at run-time? - #828: A NameError, raised from evalling, gets the wrong constant name. - #1095: Segfault on uninitialized constant in Rspec2 test - #1167: NameError: uninitialized constant Hpricot::Container::Trav::Traverse - #1192: Did not find nested constants. But, I could not find like cRuby's cref variable in compiler.cpp. I am wondering why the MacRuby does not implement cref? Also, I am thinking about implementing cref myself. I wonder if anyone would be opposed to this? Thanks Kouji. --- TAKAO Kouji <kouji@takao7.net> blog: http://d.hatena.ne.jp/kouji0625/ twitter: takaokouji / projects: ruby, s7-seven
Hi Kouji, I think that you're looking for the current_class variable of RoxorVM and the rb_vm_outer_t structure. That's how const lookup is implemented in MacRuby, basically. It is possible that the current implementation is not good enough in order to fix these issues and that a solution like CRuby should be implemented. But so far, every const lookup bug was able to be fixed. Laurent On Mar 22, 2011, at 1:37 AM, Takao Kouji wrote:
Hi,
I'm trying to fix issues below.
- #619: Constant scope in a block is determined at run-time? - #828: A NameError, raised from evalling, gets the wrong constant name. - #1095: Segfault on uninitialized constant in Rspec2 test - #1167: NameError: uninitialized constant Hpricot::Container::Trav::Traverse - #1192: Did not find nested constants.
But, I could not find like cRuby's cref variable in compiler.cpp.
I am wondering why the MacRuby does not implement cref? Also, I am thinking about implementing cref myself. I wonder if anyone would be opposed to this?
Thanks Kouji.
--- TAKAO Kouji <kouji@takao7.net> blog: http://d.hatena.ne.jp/kouji0625/ twitter: takaokouji / projects: ruby, s7-seven
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Laurent Sansonetti
-
Takao Kouji