Hey Bill --
> Idiom in question:
>
> # Get run-mode from subref
> $rm = $rm_param->($self);
>
> Is there a word for this idiom in the object oriented
> programming world - where
> an object calls a method on itself and passes a reference to
> itself to that
> method? It seems like a kind of recursion. It would help me
> to have a label
> for this brain twister. :)
Didn't anyone ever tell you not to look upder the hood? Hehe...
I think the name for what I've done here is "Perl obfuscametrics". It's a
dirty, evil hack -- but it sure looked nicer than:
$rm = &{$rm_param}($self);
What you have here is actually a code-ref ($rm_param) to which I want to
send one argument ($self). Both calling forms seem to work. I'll be damned
if I know some formal word OOD for it. :-)
Warmest regards,
-Jesse-
Jesse Erlbaum, CTO
Vanguard Media
http://www.vm.com
212.242.5317 x115
[EMAIL PROTECTED]
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]