From: "tenderlovemaking (Aaron Patterson) via ruby-core" Date: 2025-01-31T17:35:10+00:00 Subject: [ruby-core:120851] [Ruby master Bug#21103] Binding problem with delegate methods 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/