dbremner / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
0 stars 0 forks source link

eval('class A; end') fails #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
eval('class A; end') fails in Ruby.Compiler.AST.CLASS_OR_MODULE.GenCode0

Specifically, in the following code:

  while (FileClass().GetField(internal_name) != null)
      internal_name = basename + (seqNo++);

FileClass() returns null (i.e. it can't go up the eval).

This is blocking IRB support.

Original issue reported on code.google.com by sason...@gmail.com on 11 Sep 2007 at 11:28

GoogleCodeExporter commented 8 years ago
Fixed by revision 96

Original comment by DrWayneK...@gmail.com on 19 Sep 2007 at 3:41