summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-01-24 11:38:30 +0000
committerDavid Mitchell <davem@iabyn.com>2017-01-24 11:38:30 +0000
commite8f6c72afeb9caf7f6f125ba8c68f4aca5cb67a5 (patch)
tree8de31882f5e74a863bda5426094b44ee7f3fd775 /op.h
parent1935dcd61ef34854d3c3c455914b77c486e676b8 (diff)
downloadperl-e8f6c72afeb9caf7f6f125ba8c68f4aca5cb67a5.tar.gz
OP_CLASS() docs - mention op_class() too
Diffstat (limited to 'op.h')
-rw-r--r--op.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/op.h b/op.h
index 4e3012fc8a..97dea42769 100644
--- a/op.h
+++ b/op.h
@@ -927,7 +927,10 @@ Return a short description of the provided OP.
=for apidoc Am|U32|OP_CLASS|OP *o
Return the class of the provided OP: that is, which of the *OP
structures it uses. For core ops this currently gets the information out
-of C<PL_opargs>, which does not always accurately reflect the type used.
+of C<PL_opargs>, which does not always accurately reflect the type used;
+in v5.26 onwards, see also the function C<L</op_class>> which can do a better
+job of determining the used type.
+
For custom ops the type is returned from the registration, and it is up
to the registree to ensure it is accurate. The value returned will be
one of the C<OA_>* constants from F<op.h>.