Skip to content

Commit 4fbafe2

Browse files
committed
Document unspecced Cool.path
It's unspecced and never will be, but there's some use of it in the wild, so document it together with message that it's deprecated and users should use .IO instead (.IO has slightly different behaviour in that Cool:U returns an IO::Path:U, rather than stringifying and then blowing up when trying to make an empty IO::Path). Listed for deprecation in 6.d-prep in Raku/6.d-prep@87d4fbacde
1 parent 2edc062 commit 4fbafe2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/Type/Cool.pod6

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,19 @@ The inverse operation is L<chr|#method chr>.
666666
667667
Mnemonic: returns an ordinal number
668668
669+
=head2 method path
670+
671+
Defined as:
672+
673+
method path()
674+
675+
B<DEPRECATED>. I<Existed only Rakudo implementation and isn't part of any
676+
language releaseand. Issues deprecation warnings in 6.d language and will be
677+
removed entirely when 6.e language is released.>
678+
679+
Stringifies the invocant and converts it to L<IO::Path> object.
680+
Use the L«C<.IO method>|/routine/IO» instead.
681+
669682
=head2 routine chr
670683
671684
Defined as:

0 commit comments

Comments
 (0)