Skip to content

Commit 2fa7682

Browse files
committed
Remove the Enum type
... because it was removed from Rakudo in 2015.09
1 parent 17fdcb5 commit 2fa7682

File tree

4 files changed

+9
-65
lines changed

4 files changed

+9
-65
lines changed

doc/Language/operators.pod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ Coerces the argument to L<Str> by calling the C<Str> method on it.
654654
655655
=head2 prefix C«|»
656656
657-
Flattens objects of type L<Capture>, L<Enum>, L<Pair>, L<List>
658-
L<Map> and L<Hash> into an argument list.
657+
Flattens objects of type L<Capture>, L<Pair>, L<List> L<Map> and L<Hash>
658+
into an argument list.
659659
660660
Outside of argument lists, it returns a L<Slip|/type/Slip>, which makes it
661661
flatten into the outer list.
@@ -939,7 +939,6 @@ to act like a role, for example enum values.
939939
multi sub infix:<cmp>(Any, Any)
940940
multi sub infix:<cmp>(Real:D, Real:D)
941941
multi sub infix:<cmp>(Str:D, Str:D)
942-
multi sub infix:<cmp>(Enum:D, Enum:D)
943942
multi sub infix:<cmp>(Version:D, Version:D)
944943
945944
Generic, "smart" three-way comparator.
@@ -1140,7 +1139,6 @@ Mnemonic: I<less or equal>
11401139
multi sub infix:<before>(Any, Any)
11411140
multi sub infix:<before>(Real:D, Real:D)
11421141
multi sub infix:<before>(Str:D, Str:D)
1143-
multi sub infix:<before>(Enum:D, Enum:D)
11441142
multi sub infix:<before>(Version:D, Version:D)
11451143
11461144
Generic ordering, uses the same semantics as L<cmp|#infix cmp>.
@@ -1152,7 +1150,6 @@ Returns C<True> if the first argument is smaller than the second.
11521150
multi sub infix:<after>(Any, Any)
11531151
multi sub infix:<after>(Real:D, Real:D)
11541152
multi sub infix:<after>(Str:D, Str:D)
1155-
multi sub infix:<after>(Enum:D, Enum:D)
11561153
multi sub infix:<after>(Version:D, Version:D)
11571154
11581155
Generic ordering, uses the same semantics as L<cmp|#infix cmp>.

doc/Type/Enum.pod

Lines changed: 0 additions & 51 deletions
This file was deleted.

doc/Type/Hash.pod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ You can add new pairs simply by assigning to an unused key:
2828
=head1 Hash assignment
2929
3030
Assigning a list of elements to a hash variable first empties the variable,
31-
and then iterates the elements of the right-hand side. If an element is an
32-
L<Enum> (or a subclass like L<Pair>), its key is taken as a new hash key,
33-
and its value as the new hash value for that key. Otherwise the value
34-
is coerced to L<Str> and used as a hash key, while the next element of the
35-
list is taken as the corresponding value.
31+
and then iterates the elements of the right-hand side. If an element is a
32+
L<Pair>, its key is taken as a new hash key, and its value as the new hash
33+
value for that key. Otherwise the value is coerced to L<Str> and used as a
34+
hash key, while the next element of the list is taken as the corresponding
35+
value.
3636
3737
my %h = 'a', 'b', c => 'd', 'e', 'f';
3838
# same as
3939
my %h = a => 'b', c => 'd', e => 'f';
4040
# or
4141
my %h = <a b c d e f>;
4242
43-
If an L<Enum> is encountered where a value is expected, it is used as a
43+
If a L<Pair> is encountered where a value is expected, it is used as a
4444
hash value:
4545
4646
my %h = 'a', 'b' => 'c';

doc/Type/Pair.pod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
=SUBTITLE Key/value pair
66
7-
class Pair is Enum { ... }
7+
class Pair does Associative { ... }
88
99
Consists of two parts, a I<key> and a I<value>. C<Pair>s can be seen as the
1010
atomic units in C<Hash>es, and they are also used in conjunction with named
@@ -22,8 +22,6 @@ Variants of this are
2222
:key # same as key => True
2323
:!key # same as key => False
2424
25-
The immutable version of a C<Pair> is an C<Enum>.
26-
2725
=head1 Methods
2826
2927
=head2 method antipair

0 commit comments

Comments
 (0)