Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some reflow and corrections
  • Loading branch information
JJ committed Oct 11, 2018
1 parent 7e9a418 commit c962083
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 9 additions & 6 deletions doc/Language/5to6-perlfunc.pod6
Expand Up @@ -12,7 +12,7 @@ equivalents with notes on variations between them where necessary.
=head1 NOTE
This document is an
attempt to guide you from the functions in Perl 5's perlfunc document to
attempt to guide you from the functions in Perl 5's C<perlfunc> document to
their equivalents in Perl 6. For full documentation on the Perl 6
functions, follow the links in this document to their respective documentation.
Expand Down Expand Up @@ -199,10 +199,13 @@ Many of the other details returned by C<caller> are specific to Perl 5 and have
no meaning in Perl 6.
You can also get some of the information for the current frame or routine frame
by using the dynamic variables L«C<&?ROUTINE>|/language/variables#Compile-time_variables»,
L«C<&?BLOCK>|/language/variables#Compile-time_variables», L«C<$?PACKAGE>|/language/variables#Compile-time_variables»,
L«C<$?FILE>|/language/variables#Compile-time_variables», and L«C<$?LINE>|/language/variables#Compile-time_variables».
For many purposes, L<Backtrace> may provide an easier way to browse through the call stack.
by using the dynamic variables
L«C<&?ROUTINE>|/language/variables#Compile-time_variables»,
L«C<&?BLOCK>|/language/variables#Compile-time_variables»,
L«C<$?PACKAGE>|/language/variables#Compile-time_variables»,
L«C<$?FILE>|/language/variables#Compile-time_variables», and
L«C<$?LINE>|/language/variables#Compile-time_variables». For many purposes,
L<Backtrace> may provide an easier way to browse through the call stack.
The Perl 6 ecosystem has a module L<C<P5caller>|https://modules.perl6.org/dist/P5caller>
which exports a C<caller> function that mimics the original Perl 5 behaviour
Expand Down Expand Up @@ -255,7 +258,7 @@ The Perl 6 ecosystem has a module L<C<P5chomp>|https://modules.perl6.org/dist/P
which exports a C<chomp> function that mimics the original Perl 5 behaviour
as much as possible.
.head2 chop
=head2 chop
=item chop VARIABLE
Expand Down
12 changes: 6 additions & 6 deletions doc/Language/typesystem.pod6
Expand Up @@ -236,12 +236,12 @@ class C {
=head4 Submethod BUILD
The L<submethod|/type/Submethod> C<BUILD> is called by C<.BUILDALL> defined in
L<Mu|/type/Mu>, which in turn is called by L<.bless|/type/Mu#method_bless>. It is
meant to set private and public attributes of a class and receives all names
attributes passed into C<.bless>. Since it is called by C<BUILDALL> it is
called by the default constructor L<.new|/type/Mu#method_new> defined in C<Mu>.
Public accessor methods are not available in C<BUILD> use private attribute
notation instead.
L<Mu|/type/Mu>, which in turn is called by L<.bless|/type/Mu#method_bless>. It
is meant to set private and public attributes of a class and receives all names
attributes passed into C<.bless>. Since it is called by C<BUILDALL> the default
constructor L<.new|/type/Mu#method_new> defined in C<Mu> is the method that
invokes it. Public accessor methods are not available in C<BUILD> use private
attribute notation instead.
class C {
has $.attr;
Expand Down

0 comments on commit c962083

Please sign in to comment.