From: Yusuke Endoh Date: 2010-04-28T01:02:11+09:00 Subject: [ruby-core:29818] [Feature #2782] Binding#eval not completely indicative of its binding 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 : > 2010/2/23 Thomas Sawyer : >> 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 ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2782 ---------------------------------------- http://redmine.ruby-lang.org