Author: lwall Date: 2010-01-09 05:19:13 +0100 (Sat, 09 Jan 2010) New Revision: 29489
Modified: docs/Perl6/Spec/S04-control.pod Log: [S04] carry through consistenly on constant being a type declarator syntactically Modified: docs/Perl6/Spec/S04-control.pod =================================================================== --- docs/Perl6/Spec/S04-control.pod 2010-01-09 04:02:18 UTC (rev 29488) +++ docs/Perl6/Spec/S04-control.pod 2010-01-09 04:19:13 UTC (rev 29489) @@ -161,8 +161,8 @@ compile-time constant, either a variable or named value, which may be initialized with a pseudo-assignment: - constant Num $pi = 3; - constant Num π = atan2(2,2) * 4; + constant $pi of Int = 3; + my Num constant π = atan2(2,2) * 4; The initializing expression is evaluated at C<BEGIN> time. Constants (and enums) default to C<our> scoping so they can be accessed from