Skip to content

Commit 345b37e

Browse files
committed
Void → sink refs #1223
Also deletes accidental MD, refs #2022
1 parent e241017 commit 345b37e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ first $coderef, @values, :k;
261261
262262
=begin item
263263
C<&foo;> I<and> C<goto &foo;> I<for re-using the caller's argument list /
264-
replacing the caller in the call stack>. Perl 6 can use either L<C<callsame>|/language/functions#index-entry-dispatch_callsame> for re-dispatching or L<C<nextsame>|/language/functions#index-entry-dispatch_nextsame> and L<C<nextwitch>|/language/functions#index-entry-dispatch_nextwith>, which have no exact equivalent in Perl 5.
264+
replacing the caller in the call stack>. Perl 6 can use either L<C<callsame>|/language/functions#index-entry-dispatch_callsame> for re-dispatching or L<C<nextsame>|/language/functions#index-entry-dispatch_nextsame> and L<C<nextwitch>|/language/functions#index-entry-dispatch_nextwith>, which have no exact equivalent in Perl 5.
265265
266266
=begin comment
267267
# TODO: Suggest .nextsame and .nextwith once they've been implemented in Rakudo.

doc/Language/5to6-perlfunc.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,17 +537,17 @@ Currently unimplemented.
537537
538538
=item fork
539539
540-
There is no built-in `fork` function. While it's possible to call it using
540+
There is no built-in C<fork> function. While it's possible to call it using
541541
NativeCall, it's highly unlikely that the resulting process will be usable.
542542
543543
Perl 6 provides extensive support for, and internally uses, threads. However,
544-
`fork` only clones the thread that called `fork`, resulting in a process that
544+
C<fork> only clones the thread that called C<fork>, resulting in a process that
545545
will be missing its other threads, which will have been in unknown states and
546546
probably holding locks. Even if a Perl 6 program doesn't knowingly start any
547547
threads, the compiler may create some of its own in the process of precompilation,
548548
and the VMs that Perl 6 runs on also create their own internal worker threads for
549549
doing things like optimization and GC in the background. Thus, the presence of
550-
threads is pretty much assured, and there's no reasonable way to make `fork`
550+
threads is pretty much assured, and there's no reasonable way to make C<fork>
551551
reliably work in this case.
552552
553553
=head2 formats
@@ -2144,7 +2144,7 @@ to generate something which is not asked for.
21442144
21452145
Another use case is to create methods which are mutators when called
21462146
in void context but produce copies during assignment. It is generally
2147-
considered better form in Perl 6 not to do so, since users can quite
2147+
considered better form in Perl 6 not to do so, even more so because I<void> context does not exist in Perl 6, with the closest equivalent being I<sink> context, since users can quite
21482148
easily turn any copy-producing method into a mutator using the C<.=>
21492149
operator:
21502150
@@ -2156,7 +2156,7 @@ operator:
21562156
However if you have your heart set on using the same function
21572157
name for both operations, you can get most of the way there by mixing in
21582158
a C<.sink> method, which will be called when the result finds itself
2159-
in void context. There are some caveats however, so again, this is
2159+
in sink context. There are some caveats however, so again, this is
21602160
not advised:
21612161
21622162
multi sub increment($b is rw) {

0 commit comments

Comments
 (0)