kiskoza (Zsolt Kozaroczy)
- Login: kiskoza
- Registered on: 01/10/2024
- Last sign in: 01/11/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
01/10/2024
-
12:25 PM Ruby Bug #20175: Broken File.dirname(__FILE__) in eval blocks
- I see why `__FILE__` was an intended change, I'm going to change all my codes inside eval that depends on its value, thanks for pointing it out.
However, as `__dir__` returns nil instead of a string, it requires some changes to replac... -
09:59 AM Ruby Bug #20175 (Feedback): Broken File.dirname(__FILE__) in eval blocks
- Since #19755 eval use caller location by default, however, it broke `File.dirname(__FILE__)` in some cases.
```ruby
# eval.rb
eval('puts file: __FILE__, dirname: File.dirname(__FILE__)')
```
Up to Ruby 3.2.2 it gave back the sam...