dak2 (Daichi Kamiyama)
- Login: dak2
- Registered on: 03/04/2026
- Last sign in: 03/07/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
03/16/2026
-
01:37 PM Ruby Bug #21940: Ruby::Box: `$_` returns stale value due to gvar_tbl caching
- At last week's Asakusa.rb, I realized that `$~` was facing a similar issue. I've also made the necessary fixes in the PR mentioned above.
https://github.com/ruby/ruby/pull/16303#issuecomment-4067703448
03/04/2026
-
03:36 PM Ruby Bug #21940: Ruby::Box: `$_` returns stale value due to gvar_tbl caching
- Patch: https://github.com/ruby/ruby/pull/16303
-
03:25 PM Ruby Bug #21940 (Open): Ruby::Box: `$_` returns stale value due to gvar_tbl caching
## Environment
- Ruby Version v4.0.1
- OS: macOS 15.6.1 (arm64)
- `RUBY_BOX=1` enabled
## Reproduction
```shell
echo -e "a\nb" | RUBY_BOX=1 ruby -e 'gets; $_; gets; p $_'
```
## Expected
```
"b\n"
```
The secon...