Skip to content

Commit

Permalink
show namespaces for identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jul 13, 2016
1 parent 8774321 commit d709afd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Language/syntax.pod6
Expand Up @@ -178,6 +178,13 @@ Names of constants, types (including classes and modules) and routines (subs
and methods) are identifiers, and they also appear in variable names (usually
proceeded by a sigil; see L<variables|/language/variables> for more details.)
Namespaces are provided by L<packages|/language/packages>. By separating
identifiers with double colons, the right most name is inserted into existing
or automatically created packages.
my Int $Foo::Bar::buzz = 42;
dd $Foo::Bar::buzz; # OUTPUT«Int $v = 42␤»
=head1 Statements and Expressions
Perl 6 programs are made of lists of statements. A special case of a statement
Expand Down

0 comments on commit d709afd

Please sign in to comment.