* [ruby-core:120851] [Ruby master Bug#21103] Binding problem with delegate methods
@ 2025-01-31 17:35 tenderlovemaking (Aaron Patterson) via ruby-core
2025-02-01 13:45 ` [ruby-core:120853] " nobu (Nobuyoshi Nakada) via ruby-core
2025-02-14 5:13 ` [ruby-core:121027] " k0kubun (Takashi Kokubun) via ruby-core
0 siblings, 2 replies; 3+ messages in thread
From: tenderlovemaking (Aaron Patterson) via ruby-core @ 2025-01-31 17:35 UTC (permalink / raw)
To: ruby-core; +Cc: tenderlovemaking (Aaron Patterson)
Issue #21103 has been reported by tenderlovemaking (Aaron Patterson).
----------------------------------------
Bug #21103: Binding problem with delegate methods
https://bugs.ruby-lang.org/issues/21103
* Author: tenderlovemaking (Aaron Patterson)
* Status: Open
* Assignee: tenderlovemaking (Aaron Patterson)
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
```ruby
def foo(...)
a = 123
binding.local_variable_get(:a)
end
p foo([])
```
Expected output is `123`, actual output is some number. I think there is an off-by-one error in bindings created from delegate frames.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:120853] [Ruby master Bug#21103] Binding problem with delegate methods
2025-01-31 17:35 [ruby-core:120851] [Ruby master Bug#21103] Binding problem with delegate methods tenderlovemaking (Aaron Patterson) via ruby-core
@ 2025-02-01 13:45 ` nobu (Nobuyoshi Nakada) via ruby-core
2025-02-14 5:13 ` [ruby-core:121027] " k0kubun (Takashi Kokubun) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-02-01 13:45 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #21103 has been updated by nobu (Nobuyoshi Nakada).
https://github.com/ruby/ruby/pull/12686
----------------------------------------
Bug #21103: Binding problem with delegate methods
https://bugs.ruby-lang.org/issues/21103#change-111729
* Author: tenderlovemaking (Aaron Patterson)
* Status: Open
* Assignee: tenderlovemaking (Aaron Patterson)
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED
----------------------------------------
```ruby
def foo(...)
a = 123
binding.local_variable_get(:a)
end
p foo([])
```
Expected output is `123`, actual output is some number. I think there is an off-by-one error in bindings created from delegate frames.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:121027] [Ruby master Bug#21103] Binding problem with delegate methods
2025-01-31 17:35 [ruby-core:120851] [Ruby master Bug#21103] Binding problem with delegate methods tenderlovemaking (Aaron Patterson) via ruby-core
2025-02-01 13:45 ` [ruby-core:120853] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2025-02-14 5:13 ` k0kubun (Takashi Kokubun) via ruby-core
1 sibling, 0 replies; 3+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2025-02-14 5:13 UTC (permalink / raw)
To: ruby-core; +Cc: k0kubun (Takashi Kokubun)
Issue #21103 has been updated by k0kubun (Takashi Kokubun).
Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
ruby_3_4 commit:e5403bd137d57991d8788cd29bbb5916d75acb36 merged revision(s) commit:db02a6b3ab4cabbdf492c26dcb1929b4ef0370a1.
----------------------------------------
Bug #21103: Binding problem with delegate methods
https://bugs.ruby-lang.org/issues/21103#change-111935
* Author: tenderlovemaking (Aaron Patterson)
* Status: Closed
* Assignee: tenderlovemaking (Aaron Patterson)
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
----------------------------------------
```ruby
def foo(...)
a = 123
binding.local_variable_get(:a)
end
p foo([])
```
Expected output is `123`, actual output is some number. I think there is an off-by-one error in bindings created from delegate frames.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-14 5:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-31 17:35 [ruby-core:120851] [Ruby master Bug#21103] Binding problem with delegate methods tenderlovemaking (Aaron Patterson) via ruby-core
2025-02-01 13:45 ` [ruby-core:120853] " nobu (Nobuyoshi Nakada) via ruby-core
2025-02-14 5:13 ` [ruby-core:121027] " k0kubun (Takashi Kokubun) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).