[#115244] [Ruby master Feature#19987] add sample method to Range — "horv77@... (Andras Horvath) via ruby-core" <ruby-core@...>
Issue #19987 has been reported by horv77@protonmail.com (Andras Horvath).
6 messages
2023/11/05
[#115247] [Ruby master Feature#19988] AI for inner code behavior analysis at runtime — "horv77@... (Andras Horvath) via ruby-core" <ruby-core@...>
Issue #19988 has been reported by horv77@protonmail.com (Andras Horvath).
3 messages
2023/11/05
[#115404] Ruby 3.2.2 - rbconfig.rb's MAKEFILE_CONFIG — Jay Mav via ruby-core <ruby-core@...>
Hello Ruby Dev Team,
4 messages
2023/11/17
[ruby-core:115384] [Ruby master Bug#18966] Strange behavior when numbered parameters and method definition are both used in a block
From:
"fcheung (Frederick Cheung) via ruby-core" <ruby-core@...>
Date:
2023-11-13 23:16:19 UTC
List:
ruby-core #115384
Issue #18966 has been updated by fcheung (Frederick Cheung).
Ruby 3.2.2 exhibits the same behaviour as above but on master ( as of b1f345b1 ) all of these now evaluate to 'a'
----------------------------------------
Bug #18966: Strange behavior when numbered parameters and method definition are both used in a block
https://bugs.ruby-lang.org/issues/18966#change-105320
* Author: tompng (tomoya ishida)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-08-19T04:20:20Z :detached: 17d0e5bee7) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
~~~ruby
'a'.tap { p _1; def f()=42 } #=> "a"
'a'.tap { p _1; def f(a)=42 } #=> nil
'a'.tap { def f()=42; p _1 } #=> "a"
'a'.tap { def f(a)=42; p _1 } # Syntax Error -:1: ordinary parameter is defined
~~~
--
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/