[#114181] [Ruby master Bug#19767] [Not really a bug, but more a not ideal notification] "historical binary regexp match" when using the "n" modifier in a ruby regex — "rubyFeedback (robert heiler) via ruby-core" <ruby-core@...>
SXNzdWUgIzE5NzY3IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHJ1YnlGZWVkYmFjayAocm9iZXJ0IGhl
3 messages
2023/07/14
[ruby-core:114238] [Ruby master Feature#19775] Use the callback `main::const_added`
From:
"UlyssesZhan (Ulysses Zhan) via ruby-core" <ruby-core@...>
Date:
2023-07-19 06:43:41 UTC
List:
ruby-core #114238
Issue #19775 has been reported by UlyssesZhan (Ulysses Zhan). ---------------------------------------- Feature #19775: Use the callback `main::const_added` https://bugs.ruby-lang.org/issues/19775 * Author: UlyssesZhan (Ulysses Zhan) * Status: Open * Priority: Normal ---------------------------------------- In #17881, it was accepted that `Module#const_added` is called when there is a new constant added to the namespace of the module. Since `main` can also serve as a namespace, it should also be able to use this callback. ```ruby def const_added name p name end Foo = 1 # => :Foo ``` -- 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/