Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a02a25

Browse files
committed
Clarify in documentation the distinction between sv_isa_sv() and the much older sv_isa()
1 parent b162e6e commit 6a02a25

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

sv.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10301,8 +10301,12 @@ Perl_sv_isobject(pTHX_ SV *sv)
1030110301
=for apidoc sv_isa
1030210302
1030310303
Returns a boolean indicating whether the SV is blessed into the specified
10304-
class. This does not check for subtypes; use C<sv_derived_from> to verify
10305-
an inheritance relationship.
10304+
class.
10305+
10306+
This does not check for subtypes or method overloading. Use C<sv_isa_sv> to
10307+
verify an inheritance relationship in the same way as the C<isa> operator by
10308+
respecting any C<isa()> method overloading; or C<sv_derived_from_sv> to test
10309+
directly on the actual object type.
1030610310
1030710311
=cut
1030810312
*/

universal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ not derived from the specified class.
197197
198198
This is the function used to implement the behaviour of the C<isa> operator.
199199
200+
Not to be confused with the older C<sv_isa> function, which does not use an
201+
overloaded C<isa()> method, nor will check subclassing.
202+
200203
=cut
201204
202205
*/

0 commit comments

Comments
 (0)