You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Language/5to6-nutshell.pod6
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,7 @@ first $coderef, @values, :k;
261
261
262
262
=beginitem
263
263
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 Perl5.
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 Perl5.
265
265
266
266
=begincomment
267
267
# TODO: Suggest .nextsame and .nextwith once they've been implemented in Rakudo.
Copy file name to clipboardExpand all lines: doc/Language/5to6-perlfunc.pod6
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -537,17 +537,17 @@ Currently unimplemented.
537
537
538
538
=itemfork
539
539
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
541
541
NativeCall, it's highly unlikely that the resulting process will be usable.
542
542
543
543
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
545
545
will be missing its other threads, which will have been in unknown states and
546
546
probably holding locks. Even if a Perl 6 program doesn't knowingly start any
547
547
threads, the compiler may create some of its own in the process of precompilation,
548
548
and the VMs that Perl 6 runs on also create their own internal worker threads for
549
549
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>
551
551
reliably work in this case.
552
552
553
553
=head2formats
@@ -2144,7 +2144,7 @@ to generate something which is not asked for.
2144
2144
2145
2145
Another use case is to create methods which are mutators when called
2146
2146
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
2148
2148
easily turn any copy-producing method into a mutator using the C<.=>
2149
2149
operator:
2150
2150
@@ -2156,7 +2156,7 @@ operator:
2156
2156
However if you have your heart set on using the same function
2157
2157
name for both operations, you can get most of the way there by mixing in
2158
2158
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
0 commit comments