I saw it as a way of getting the public interface to be prototyped, but the private (recursive) interface to have that extra $refs parameter.
And then I was thinking there should be a way to do it with a coderef alias, but the prototype is hooked into the coderef, not the symbolname, so I stopped thinking about that. {grin}
-- Randal L. Schwartz, Perl hacker | [reply] |
I'd probably just have the one entry point and call it recursively via
&treemap( $code, $$node, $refs ), where the & should disable the prototype.
-
tye
(but my friends call me "Tye")
| [reply] [d/l] [select] |
It could goto &_treemap to avoid the stack level.
Or, have sub treemap (&$) { ... &treemap(..) }
to avoid the prototype internally | [reply] |