[#115884] Windows Ruby 3.2.2: Non-English character added to Windows Registry String Value — Jay Mav via ruby-core <ruby-core@...>
Hello,
3 messages
2023/12/24
[ruby-core:115913] [Ruby master Bug#20091] Anonymous block method parameters no longer usable within blocks with ruby 3.3
From:
"sigsys (Math Ieu) via ruby-core" <ruby-core@...>
Date:
2023-12-26 23:56:13 UTC
List:
ruby-core #115913
Issue #20091 has been reported by sigsys (Math Ieu).
----------------------------------------
Bug #20091: Anonymous block method parameters no longer usable within blocks with ruby 3.3
https://bugs.ruby-lang.org/issues/20091
* Author: sigsys (Math Ieu)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [amd64-freebsd13]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
This used to work on 3.1 and 3.2, but now fails with "anonymous block parameter is also used within block (SyntaxError)":
```
def g = yield
def f(&)
g { g(&) }
end
p f { 123 }
```
And something like this also fails:
```
def f(&)
loop do
return g(&)
end
end
```
--
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/postorius/lists/ruby-core.ml.ruby-lang.org/