From efa8f708cd0da7c71bb71920a47b545bd07bc28a Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Wed, 14 Sep 2022 13:51:15 +0100 Subject: pod/perlmroapi.pod - document linear MRO function return type. Small docs clarification to point out that the linear MRO function returns a list of strings --- mro_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mro_core.c') diff --git a/mro_core.c b/mro_core.c index 8284fb10a8..f1068314e8 100644 --- a/mro_core.c +++ b/mro_core.c @@ -216,7 +216,8 @@ Perl_mro_meta_dup(pTHX_ struct mro_meta* smeta, CLONE_PARAMS* param) =for apidoc mro_get_linear_isa_dfs Returns the Depth-First Search linearization of C<@ISA> -the given stash. The return value is a read-only AV*. +the given stash. The return value is a read-only AV* +whose elements are string SVs giving class names. C should be 0 (it is used internally in this function's recursion). @@ -399,7 +400,7 @@ S_mro_get_linear_isa_dfs(pTHX_ HV *stash, U32 level) Returns the mro linearisation for the given stash. By default, this will be whatever C returns unless some other MRO is in effect for the stash. The return value is a -read-only AV*. +read-only AV* whose values are string SVs giving class names. You are responsible for C on the return value if you plan to store it anywhere -- cgit v1.2.1