3065 |
|
|
3066 |
"sort is now a reserved word" |
"sort is now a reserved word" |
3067 |
|
|
3068 |
|
=begin original |
3069 |
|
|
3070 |
This error used to occur when C<sort> was called without arguments, |
This error used to occur when C<sort> was called without arguments, |
3071 |
followed by C<;> or C<)>. (E.g., C<sort;> would die, but C<{sort}> was |
followed by C<;> or C<)>. (E.g., C<sort;> would die, but C<{sort}> was |
3072 |
OK.) This error message was added in Perl 3 to catch code like |
OK.) This error message was added in Perl 3 to catch code like |
3075 |
always allowed, and returns an empty list, as it did in those cases |
always allowed, and returns an empty list, as it did in those cases |
3076 |
where it was already allowed [perl #90030]. |
where it was already allowed [perl #90030]. |
3077 |
|
|
3078 |
|
=end original |
3079 |
|
|
3080 |
|
このエラーは C<sort> が引数なしで呼び出され、その後に C<;> か C<)> が |
3081 |
|
続いていた場合に発生していました。 |
3082 |
|
(例えば C<sort;> は die しますが、C<{sort}> は OK です。) |
3083 |
|
このエラーは、もはや動作しない C<close(sort)> のようなコードを捕捉するために |
3084 |
|
Perl 3 で追加されました。 |
3085 |
|
20 年以上経って、このメッセージはもはや適切ではなくなりました。 |
3086 |
|
引数なしの C<sort> は常に許されるようになり、今まで許されていた場合と |
3087 |
|
同じように、空リストを返します [perl #90030]。 |
3088 |
|
|
3089 |
=back |
=back |
3090 |
|
|
3091 |
=head2 Changes to Existing Diagnostics |
=head2 Changes to Existing Diagnostics |
3499 |
|
|
3500 |
=item * |
=item * |
3501 |
|
|
3502 |
|
The returned code point from the function C<utf8n_to_uvuni()> |
3503 |
|
when the input is malformed UTF-8, malformations are allowed, and |
3504 |
|
C<utf8> warnings are off is now the Unicode REPLACEMENT CHARACTER |
3505 |
|
whenever the malformation is such that no well-defined code point can be |
3506 |
|
computed. Previously the returned value was essentially garbage. The |
3507 |
|
only malformations that have well-defined values are a zero-length |
3508 |
|
string (0 is the return), and overlong UTF-8 sequences. |
3509 |
|
|
3510 |
|
=item * |
3511 |
|
|
3512 |
Padlists are now marked C<AvREAL>; i.e., reference-counted. They have |
Padlists are now marked C<AvREAL>; i.e., reference-counted. They have |
3513 |
always been reference-counted, but were not marked real, because F<pad.c> |
always been reference-counted, but were not marked real, because F<pad.c> |
3514 |
did its own clean-up, instead of using the usual clean-up code in F<sv.c>. |
did its own clean-up, instead of using the usual clean-up code in F<sv.c>. |