From 197a3efc751f43956fc9ad30d688b4bfa3f7fbdb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 12 Dec 2024 18:30:43 +0900 Subject: [PATCH] [Feature #20884] News of toplevel "Ruby" name reservation --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 57e37708d22d3e..9326d70ffbfc25 100644 --- a/NEWS.md +++ b/NEWS.md @@ -25,6 +25,9 @@ Note that each entry is kept to a minimum, see links for details. * Keyword arguments are no longer allowed in index assignment (e.g. `a[0, kw: 1] = 2`). [[Bug #20218]] +* The toplevel name `::Ruby` is reserved now, and the definition will be warned + when `Warning[:deprecated]`. [[Feature #20884]] + ## Core classes updates Note: We're only listing outstanding class updates. @@ -396,5 +399,6 @@ details of the default gems or bundled gems. [Feature #20811]: https://bugs.ruby-lang.org/issues/20811 [Feature #20860]: https://bugs.ruby-lang.org/issues/20860 [Feature #20876]: https://bugs.ruby-lang.org/issues/20876 +[Feature #20884]: https://bugs.ruby-lang.org/issues/20884 [Feature #20902]: https://bugs.ruby-lang.org/issues/20902 [Bug #20929]: https://bugs.ruby-lang.org/issues/20929