Skip to content

Commit 6612a01

Browse files
authored
Merge pull request #3230 from Raku/star-RAKU
Star raku
2 parents 2e51f74 + ed6507a commit 6612a01

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

doc/Language/5to6-perlvar.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ C<OLDPWD> is missing from Raku's %ENV.
135135
136136
=head3 $OLD_PERL_VERSION, $]
137137
138-
The running version of Raku is kept by C<$*PERL> special variable, that is an object.
139-
The running version is retrieved via C<$*PERL.version>, which returns something
140-
like C<v6.c>; the full stringified version of the Perl interpreter is obtained
141-
via C<~$*PERL>, which returns something like C<Raku (6.c)>.
138+
The running version of Raku is kept by C<$*RAKU> special variable, that is an object.
139+
The running version is retrieved via C<$*RAKU.version>, which returns something
140+
like C<v6.d>; the full stringified version of the Raku interpreter is obtained
141+
via C<$*RAKU.gist>, which returns something like C<Raku (6.d)>.
142142
143143
=head3 $SYSTEM_FD_MAX, $^F
144144
@@ -264,7 +264,7 @@ seconds, with fractions.
264264
265265
=head3 $PERL_VERSION, $^V
266266
267-
As with C<$]> this has been replaced with C<$*PERL.version>.
267+
As with C<$]> this has been replaced with C<$*RAKU.version>.
268268
269269
=head3 ${^WIN32_SLOPPY_STAT}
270270

doc/Language/variables.pod6

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,10 @@ It stringifies to C<Raku>:
15321532
15331533
$*RAKU.put; # OUTPUT: «Raku␤»
15341534
1535+
B<Note:> Before Rakudo version 2020.1, this information was only
1536+
available through the C<$*PERL> variable. Since Rakudo version 2020.1,
1537+
it is available through both the C<$*RAKU> and the C<$*PERL> variables.
1538+
15351539
X<|$*PERL>
15361540
=head4 C<$*PERL>
15371541

doc/Type/Compiler.pod6

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
99
Built-in class for providing compiler related information. Usually accessed
1010
through the C<compiler> attribute of the
11-
L«C<$*PERL>|/language/variables#Dynamic_variables» dynamic variable.
11+
L«C<$*RAKU>|/language/variables#Dynamic_variables» dynamic variable.
1212
13-
say $*PERL.compiler; # OUTPUT: «rakudo (2019.03.1.385.ga.643.b.8.be.1)␤»
13+
say $*RAKU.compiler; # OUTPUT: «rakudo (2020.02.16.g.28.bd.4247.a)␤»
14+
15+
B<Note>: Before Rakudo version 2020.1 this was only available through
16+
the C<compiler> attribute of the C<$*PERL> dynamic variable. Since
17+
Rakudo version 2020.1 this is available through both the C<$*RAKU>
18+
and the C<$*PERL> variables.
1419
1520
=head1 Methods
1621
@@ -31,7 +36,7 @@ It's empty, but it might contain the codename for specific releases.
3136
3237
method build-date()
3338
34-
Up to version 2019.03.1, it returns the date when it was built.
39+
Up to Rakudo version 2019.03.1, it returned the date when it was built.
3540
3641
say $*PERL.compiler.build-date; #OUTPUT: «2018-05-05T21:49:43Z␤»
3742
@@ -43,7 +48,7 @@ If C<$say> is C<True>, it prints the different items included in the
4348
configuration of the compiler; if it is not, returns a C<Hash> with the same
4449
information.
4550
46-
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
51+
say $*RAKU.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
4752
4853
4954
See Also: L<Systemic|/type/Systemic>

doc/Type/Systemic.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Built-in class for providing built system related information. Usually accessed
88
through dynamic variables mixing this role such as the
99
L«C<$*KERNEL>|/language/variables#Dynamic_variables»,
1010
L«C<$*VM>|/language/variables#Dynamic_variables», or
11-
L«C<$*PERL>|/language/variables#Dynamic_variables».
11+
L«C<$*RAKU>|/language/variables#Dynamic_variables».
1212
1313
1414
=head1 Methods
@@ -51,9 +51,9 @@ version could not be established.
5151
5252
Instance method returning the name and version of the object.
5353
54-
say $*PERL.gist; # OUTPUT: «Raku (6.c)␤»
54+
say $*RAKU.gist; # OUTPUT: «Raku (6.d)␤»
5555
56-
C<$*PERL> is an object of the L<Perl|/type/Perl> type, which mixes in this role
56+
C<$*RAKU> is an object of the L<Raku|/type/Raku> type, which mixes in this role
5757
and thus implements this method.
5858
5959
=head2 method Str
@@ -62,7 +62,7 @@ and thus implements this method.
6262
6363
Instance method returning the name of the object.
6464
65-
say $*PERL.Str; # OUTPUT: «Raku␤»
65+
say $*RAKU.Str; # OUTPUT: «Raku␤»
6666
6767
=end pod
6868

doc/Type/X/Syntax/Perl5Var.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ say $];
1515
dies with
1616
1717
=for code :lang<text>
18-
Unsupported use of $] variable; in Raku please use $*PERL.version or $*PERL.compiler.version
18+
Unsupported use of $] variable; in Raku please use $*RAKU.version or $*RAKU.compiler.version
1919
2020
For every unsupported variable (which include most C<$^'letter'> constructs,
2121
as well as others like C<$">, the error message will mention that the

0 commit comments

Comments
 (0)