[perldocjp-cvs 1428] CVS update: docs/perl/5.16.0

Back to archive index

argra****@users***** argra****@users*****
2012年 4月 27日 (金) 19:33:33 JST


Index: docs/perl/5.16.0/perl5160delta.pod
diff -u docs/perl/5.16.0/perl5160delta.pod:1.9 docs/perl/5.16.0/perl5160delta.pod:1.10
--- docs/perl/5.16.0/perl5160delta.pod:1.9	Fri Apr 27 04:22:16 2012
+++ docs/perl/5.16.0/perl5160delta.pod	Fri Apr 27 19:33:33 2012
@@ -3065,6 +3065,8 @@
 
 "sort is now a reserved word"
 
+=begin original
+
 This error used to occur when C<sort> was called without arguments,
 followed by C<;> or C<)>.  (E.g., C<sort;> would die, but C<{sort}> was
 OK.)  This error message was added in Perl 3 to catch code like
@@ -3073,6 +3075,17 @@
 always allowed, and returns an empty list, as it did in those cases
 where it was already allowed [perl #90030].
 
+=end original
+
+このエラーは C<sort> が引数なしで呼び出され、その後に C<;> か C<)> が
+続いていた場合に発生していました。
+(例えば C<sort;> は die しますが、C<{sort}> は OK です。)
+このエラーは、もはや動作しない C<close(sort)> のようなコードを捕捉するために
+Perl 3 で追加されました。
+20 年以上経って、このメッセージはもはや適切ではなくなりました。
+引数なしの C<sort> は常に許されるようになり、今まで許されていた場合と
+同じように、空リストを返します [perl #90030]。
+
 =back
 
 =head2 Changes to Existing Diagnostics
@@ -3486,6 +3499,16 @@
 
 =item *
 
+The returned code point from the function C<utf8n_to_uvuni()>
+when the input is malformed UTF-8, malformations are allowed, and
+C<utf8> warnings are off is now the Unicode REPLACEMENT CHARACTER
+whenever the malformation is such that no well-defined code point can be
+computed.  Previously the returned value was essentially garbage.  The
+only malformations that have well-defined values are a zero-length
+string (0 is the return), and overlong UTF-8 sequences.
+
+=item *
+
 Padlists are now marked C<AvREAL>; i.e., reference-counted.  They have
 always been reference-counted, but were not marked real, because F<pad.c>
 did its own clean-up, instead of using the usual clean-up code in F<sv.c>.



perldocjp-cvs メーリングリストの案内
Back to archive index