Skip to content

Commit f37792e

Browse files
committed
Clarification on synthetic numerics and No values
Refs #2632
1 parent 0a40d7e commit f37792e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/Type/Str.pod6

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ Only Unicode characters with property C<Nd>, as well as leading and trailing
348348
whitespace are allowed, with the special case of the empty string being coerced
349349
to C<0>. Synthetic codepoints (e.g. C<"7\x[308]">) are forbidden.
350350
351-
While C<Nl> and C<No> characters can be used as numeric literals
352-
in the language, their conversion via C<Str.Numeric> will fail, by design.
351+
While C<Nl> and C<No> characters can be used as numeric literals in the
352+
language, their conversion via C<Str.Numeric> will fail, by design; the same
353+
will happen with synthetic numerics (composed of numbers and diacritic marks).
353354
See L«unival|/routine/unival» if you need to coerce such characters to
354355
C<Numeric>.
355356
@@ -1128,8 +1129,10 @@ be parsed.
11281129
11291130
While characters belonging to the Unicode categories C<Nl> (number letters)
11301131
and C<No> (other numbers) can be used as numeric literals in the language,
1131-
they will not be converted to a number by C<val>, by design.
1132-
See L«unival|/routine/unival» if you need to convert such characters to
1132+
they will not be converted to a number by C<val>, by design, and using C<val>
1133+
on them will produce a failure. The same will happen with synthetic numerics
1134+
(such as 7̈ )See L«unival|/routine/unival» if you need to convert such
1135+
characters to
11331136
C<Numeric>.
11341137
11351138
=head2 method Version

0 commit comments

Comments
 (0)