[前][次][番号順一覧][スレッド一覧]

ruby-changes:56134

From: Kazuhiro <ko1@a...>
Date: Tue, 18 Jun 2019 17:32:20 +0900 (JST)
Subject: [ruby-changes:56134] Kazuhiro NISHIYAMA: e6aa0a61fa (trunk): [DOC] non-nil `$,`,`$; ` will be deprecated [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=e6aa0a61fa

From e6aa0a61fac94f16250412b8ac80657dd9d6d572 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Tue, 18 Jun 2019 17:30:01 +0900
Subject: [DOC] non-nil `$,`,`$;` will be deprecated [ci skip]

```
% ruby -e '$,=""; $;=""'
-e:1: warning: non-nil $, will be deprecated
-e:1: warning: non-nil $; will be deprecated
```

diff --git a/doc/globals.rdoc b/doc/globals.rdoc
index 1e70555..c4aacd4 100644
--- a/doc/globals.rdoc
+++ b/doc/globals.rdoc
@@ -13,8 +13,8 @@ $~::   The information about the last match in the current scope. https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L13
 $=::   This variable is no longer effective. Deprecated.
 $/::   The input record separator, newline by default.
 $\::   The output record separator for the print and IO#write. Default is nil.
-$,::   The output field separator for the print and Array#join.
-$;::   The default separator for String#split.
+$,::   The output field separator for the print and Array#join. Non-nil $, will be deprecated.
+$;::   The default separator for String#split. Non-nil $; will be deprecated.
 $.::   The current input line number of the last file that was read.
 $<::   The virtual concatenation file of the files given on command line (or from $stdin if no files were given).
 $>::   The default output for print, printf. $stdout by default.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]