diff options
author | David Mitchell <davem@iabyn.com> | 2017-01-24 11:38:30 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-01-24 11:38:30 +0000 |
commit | e8f6c72afeb9caf7f6f125ba8c68f4aca5cb67a5 (patch) | |
tree | 8de31882f5e74a863bda5426094b44ee7f3fd775 /op.h | |
parent | 1935dcd61ef34854d3c3c455914b77c486e676b8 (diff) | |
download | perl-e8f6c72afeb9caf7f6f125ba8c68f4aca5cb67a5.tar.gz |
OP_CLASS() docs - mention op_class() too
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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>. |