Skip to content

Commit

Permalink
fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Sep 26, 2018
1 parent 86fca8d commit cf116bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions doc/Language/subscripts.pod6
Expand Up @@ -854,10 +854,11 @@ of an object of this type.
=comment When modifying this section, please also adapt the STORE
section in Associative accordingly as they are very similar.
method STORE (::?CLASS:D: values, :$initialize)
method STORE (::?CLASS:D: \values, :$initialize)
This method should only be supplied if you want to support the:
=for code :preamble<role Foo {}>
my @a is Foo = 1,2,3;
syntax for binding your implementation of the C<Positional> role.
Expand Down Expand Up @@ -980,10 +981,11 @@ slot of an object of this type.
=comment When modifying this section, please also adapt the STORE
section in Positional accordingly as they are very similar.
method STORE (::?CLASS:D: values, :$initialize)
method STORE (::?CLASS:D: \values, :$initialize)
This method should only be supplied if you want to support the:
=for code :preamble<role Foo {}>
my %h is Foo = a => 42, b => 666;
syntax for binding your implementation of the C<Associative> role.
Expand Down
7 changes: 4 additions & 3 deletions doc/Type/Associative.pod6
Expand Up @@ -70,22 +70,23 @@ you use the parametrized version of Associative.
=head2 method AT-KEY
method AT-KEY(key)
method AT-KEY(\key)
Should return the value / container at the given key.
=head2 method EXISTS-KEY
method EXISTS-KEY(key)
method EXISTS-KEY(\key)
Should return a C<Bool> indicating whether the given key actually has a value.
=head2 method STORE
method STORE(values, :$initialize)
method STORE(\values, :$initialize)
This method should only be supplied if you want to support the:
=for code :preamble<role Foo {}>
my %h is Foo = a => 42, b => 666;
syntax for binding your implementation of the C<Associative> role.
Expand Down
7 changes: 4 additions & 3 deletions doc/Type/Positional.pod6
Expand Up @@ -29,23 +29,24 @@ Should return the number of available elements in the instantiated object.
=head2 method AT-POS
method AT-POS(position)
method AT-POS(\position)
Should return the value / container at the given position.
=head2 method EXISTS-POS
method EXISTS-POS(position)
method EXISTS-POS(\position)
Should return a C<Bool> indicating whether the given position actually has a
value.
=head2 method STORE
method STORE(values, :$initialize)
method STORE(\values, :$initialize)
This method should only be supplied if you want to support the:
=for code :preamble<role Foo {}>
my @a is Foo = 1,2,3;
syntax for binding your implementation of the C<Positional> role.
Expand Down

0 comments on commit cf116bb

Please sign in to comment.