Skip to content

Commit c6546a2

Browse files
committed
Adds the Compiler type
Links it from `Perl`. Closes #503
1 parent e112a84 commit c6546a2

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

doc/Type/Compiler.pod6

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
=begin pod
2+
3+
=TITLE role compiler
4+
5+
=SUBTITLE Information related to the compiler that is being used
6+
7+
class Compiler does Systemic;
8+
9+
Built-in class for providing compiler related information. Usually accessed
10+
through C`compiler` attribute of the the L«C<$*PERL>|/language/variables#Dynamic_variables» dynamic variable.
11+
12+
=head1 Methods
13+
14+
=head2 method build-date
15+
16+
method build-date()
17+
18+
Returns the date when it was built.
19+
20+
say $*PERL.compiler.build-date; #OUTPUT: «2018-05-05T21:49:43Z␤»
21+
22+
=head2 method verbose-config
23+
24+
method verbose-config(:$say)
25+
26+
If C<$say> is C<True>, prints the different items included in the configuration of the compiler; if it is not, returns a C<Hash> with the same information.
27+
28+
say $*PERL.compiler.verbose-config; # OUTPUT: «distro::auth=https://www.opensuse.org/␤distro::desc=2018-05-06T09:19:17.571307+02:00␤» ... And the rest of the configuration
29+
30+
31+
See Also: L<Systemic>
32+
33+
=end pod
34+
35+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

doc/Type/Perl.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Perl object.
1818
1919
=head2 method compiler
2020
21-
Instance method returning the L<compiler|/routine/compiler> object associated with the Perl
21+
Instance method returning the L<compiler|/routine/compiler> object, of type L<Compiler>, associated with the Perl
2222
object.
2323
2424
=head2 method DISTROnames
@@ -57,7 +57,7 @@ supported by this version of Perl.
5757
5858
=head1 See Also
5959
60-
L<Systemic>
60+
L<Systemic>, L<Compiler>.
6161
6262
=end pod
6363

0 commit comments

Comments
 (0)