Skip to content

Commit 5f2684c

Browse files
committed
add allomorph to glossary
covers #418
1 parent 819be1a commit 5f2684c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/Language/glossary.pod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ A generalized form of C<pair notation>. They all start with the colon, like:
7272
7373
Also see L<#Adverb> and L<#Colon Pair and Colon List>.
7474
75+
=head1 Allomorph
76+
77+
A type that has two related values which may be used depending on the
78+
context. The I<allomorph> types L<IntStr|/type/IntStr>, L<NumStr|/type/NumStr>,
79+
L<RatStr|/type/RatStr> and L<ComplexStr|/type/ComplexStr> may be created
80+
as a result of parsing a quoted string:
81+
82+
say <42>.WHAT; # (IntStr)
83+
say <42.1e0>.WHAT; # (NumStr)
84+
say <42.1>.WHAT; # (RatStr)
85+
say <42+0i>.WHAT; # (ComplexStr)
86+
87+
Or they may be created explicitly with differing string and numeric values.
88+
7589
=head1 Anonymous
7690
7791
A subroutine, method or submethod is called I<anonymous> if it can't be

0 commit comments

Comments
 (0)