Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct allomorphs section to include Rat and Complex literals behaviour
  • Loading branch information
zoffixznet committed Nov 27, 2016
1 parent fa0b8f6 commit c94df2f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/Language/glossary.pod6
Expand Up @@ -79,9 +79,15 @@ as a result of parsing a quoted string:
say <42>.WHAT; # (IntStr)
say <42.1e0>.WHAT; # (NumStr)
say <42.1>.WHAT; # (RatStr)
say <42+0i>.WHAT; # (ComplexStr)
Or they may be created explicitly with differing string and numeric values.
Note: if the number contains an operator (C</> or C<+>) and there're no other
characters inside the angular brackets, you will receive a literal of that
number:
say <42/1>.WHAT; # (Rat)
say <42+0i>.WHAT; # (Complex)
say < 42+0i >.WHAT;# (ComplexStr)
say < 42/1 >.WHAT; # (RatStr)
=head1 Anonymous
X<|Anonymous>
Expand Down

0 comments on commit c94df2f

Please sign in to comment.