Issue #2782 has been updated by Yusuke Endoh.

Assigned to changed from Yukihiro Matsumoto to Yusuke Endoh
Target version changed from 2.0 to 1.9.2

Hi,

2010/4/11 Yusuke Endoh <redmine / ruby-lang.org>:
> 2010/2/23 Thomas Sawyer <redmine / ruby-lang.org>:
>> binding.eval("__FILE__") does not return the file from which the binding was created.
>>
>> Given the purpose of binding it should hold that:
>>
>>   __FILE__ == binding.eval("__FILE__")
>
>
> In the current semantics, I guess binding does not includes
> the imformation of filename and lineno.
>
> At least, this is not a bug. ?I moved the ticket to Feature
> tracker.


Sorry I was wrong.  I didn't know 1.8 preserves the filename.
I agree that this is a bug.

And this ticket duplicates #1769.  I've suggested a patch in that ticket.

-- 
Yusuke Endoh <mame / tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2782

----------------------------------------
http://redmine.ruby-lang.org