We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 938c8ea commit 041c159Copy full SHA for 041c159
doc/Language/terms.pod6
@@ -176,7 +176,7 @@ Variables are discussed in the L<variable language docs |/language/variables>.
176
X<|constant (Terms)>
177
Constants are declared with C<constant> and do not require a sigil. The RHS is evaluated at compile time, what may be too early to make sense.
178
179
- constant SpeedOfLight = 299792458/ # m/s
+ constant SpeedOfLight = 299792458; # m/s
180
constant PHI = 1.61803398875; # The golden ratio is everywhere!
181
constant POW2 = do { my int @table; @table = 1, 2, 4 ... 2**32; @table };
182
say POW2[16];
0 commit comments