File tree Expand file tree Collapse file tree 5 files changed +69
-6
lines changed
Expand file tree Collapse file tree 5 files changed +69
-6
lines changed Original file line number Diff line number Diff line change 11Revision history for Syntax-Construct
22
3+ 1.043 2025--
4+ - Perl 5.42.0 released
5+
361.042 2025-06-13
47 - Add sig-warn-obj
58
Original file line number Diff line number Diff line change @@ -4,10 +4,13 @@ use 5.006002;
44use strict;
55use warnings;
66
7- our $VERSION = ' 1.042 ' ;
7+ our $VERSION = ' 1.043 ' ;
88
99my %introduces = do { no warnings ' qw' ;
10- ( ' 5.040' => [qw[
10+ ( ' 5.042' => [qw[
11+ :writer my_method ->& unicode16.0 ^^=
12+ ] ],
13+ ' 5.040' => [qw[
1114 ^^ __CLASS__ :reader
1215 ] ],
1316 ' 5.038' => [qw[
@@ -185,6 +188,9 @@ my %alias = (
185188 ' optimistic-eval' => ' *{}' ,
186189 # 5.040
187190 ' logical-xor' => ' ^^' ,
191+ # 5.042
192+ ' lexical-method-invocation-operator' => ' ->&' ,
193+ ' assign-logical-xor' => ' ^^=' ,
188194);
189195
190196my %_introduced = map {
@@ -305,7 +311,7 @@ Syntax::Construct - Explicitly state which non-feature constructs are used in th
305311
306312=head1 VERSION
307313
308- Version 1.042
314+ Version 1.043
309315
310316=head1 SYNOPSIS
311317
@@ -989,6 +995,32 @@ L<perl5400delta/New __CLASS__ Keyword>.
989995
990996L<perl5400delta/:reader attribute for field variables>
991997
998+ =head2 5.042
999+
1000+ =head3 :writer
1001+
1002+ L<perldelta/New :writer attribute on field variables>
1003+
1004+ =head3 my_method
1005+
1006+ L<perldelta/Lexical method declaration using my method>
1007+
1008+ =head3 ->&
1009+
1010+ L<< perldelta/Lexical method invocation operator -> & >>
1011+
1012+ Alias: lexical-method-invocation-operator
1013+
1014+ =head3 unicode16.0
1015+
1016+ L<perldelta/Unicode 16.0 supported>
1017+
1018+ =head3 ^^=
1019+
1020+ L<perldelta/Assigning logical xor ^^= operator>
1021+
1022+ Alias: assign-logical-xor
1023+
9921024=for completeness
9931025=head2 old
9941026
Original file line number Diff line number Diff line change @@ -27,6 +27,34 @@ sub skippable {
2727
2828
2929my %tests = (
30+ ' 5.042' => [
31+ [ ' :writer' ,
32+ ' use experimental qw{ class };
33+ class MyClass3 { field $x :writer :reader }
34+ my $o = MyClass3->new;
35+ $o->set_x(2);
36+ $o->x' ,
37+ ' 2' ],
38+ [ ' my_method' ,
39+ ' use experimental qw{ class };
40+ class MyClass4 { my method x { "x" }; method p { $self->&x() } }
41+ my $o = MyClass4->new;
42+ $o->p' ,
43+ ' x' ],
44+ [ ' ->&' ,
45+ ' use experimental qw{ class };
46+ class MyClass5 { my method x { "x" }; method p { $self->&x() } }
47+ my $o = MyClass5->new;
48+ $o->p' ,
49+ ' x' ],
50+ [ ' unicode16.0' ,
51+ ' "\N{HARP}" eq "\N{U+1FA89}"' , 1],
52+ [ ' ^^=' ,
53+ ' my $x = 1;
54+ $x ^^= 0;
55+ $x' ,
56+ 1 ]
57+ ],
3058 ' 5.040' => [
3159 [ ' ^^' ,
3260 ' 1 ^^ 0' , 1 ],
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use FindBin;
66
77my %count ;
88BEGIN {
9- %count = (constructs => 103 , old => 4, removed => 7);
9+ %count = (constructs => 108 , old => 4, removed => 7);
1010}
1111
1212use Test::More tests => 5;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ use FindBin;
55
66my $plan ;
77BEGIN {
8- my %count = (constructs => 103 ,
8+ my %count = (constructs => 108 ,
99 removed => 7,
10- aliases => 80 ,
10+ aliases => 82 ,
1111 old => 4);
1212 $plan = 5 * $count {constructs } + 3 * $count {removed }
1313 + 6 * $count {aliases } + $count {old } + 1;
You can’t perform that action at this time.
0 commit comments