General

Profile

jawj (George MacKerron)

  • Login: jawj
  • Registered on: 12/19/2011
  • Last sign in: 12/22/2011

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/22/2011

07:00 AM Ruby Bug #5777: class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
Yehuda, thanks for the response. I understand that the lookup rules were changed between 1.9.1 and 1.9.2 -- that's not the issue I'm raising.
What I find strange is that class_eval in 1.9.2+ interprets the exact same code differently ...
jawj (George MacKerron)

12/19/2011

08:03 PM Ruby Bug #5777 (Closed): class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
class_eval/module_eval works differently when passed code as a string than when passed the same code as a block in 1.9.2/1.9.3.
In particular, constant lookup appears to vary. Here's a very short test case (this is on a Mac on 1.9.2,...
jawj (George MacKerron)

Also available in: Atom