Show quoted text> I would like the option to not have the second argument passed to the
> delegate run modes.
Here is an idea:
There are now two options to specify the delegate: package name (string)
or instance (blessed reference).
The second parameter is passed in both cases.
A fix for your situation would be to change this behaviour to pass
$delegate only in case it is an object reference.
That is an incompatible change, but I do not think many people use that
feature yet, so I would be willing to do that.
And while we are at it, in the case of a $delegate object, I propose to
change the order of the two parameters to ($delegate, $app), since we
are now calling a method on $delegate with $app as a parameter.
So the interface would be:
A) with a package name: sub delegation($app){ }
B) with a delegate object: sub delegation($self, $app) {}
A being a procedural approach, B more object-oriented.
Do you think we should be consistent and un-support sub-classing for
type A (which now works, as the lookup is done with "can") ?