ObjectivePerl
view release on metacpan or search on metacpan
ObjectivePerl.pm view on Meta::CPAN
=head2 Message Dispatch
If you define methods using the -/+ syntax, ObjectivePerl will
translate those method definitions into regular perl subs with
names based on the method name and its arguments. You can then
invoke those methods using obj-c style messages. However,
there are often times when you need to call older perl code that
does not list its arguments in its signature, or perhaps you wish
to invoke a method across the PerlObjCBridge in OSX. To do
this transparently, the ObjectivePerl runtime uses a method lookup
cascade that works as follows:
1. It tries to find the correctly-defined method
for the invocation using ObjectivePerl syntax
2. (NEW in 0.03 for CamelBones Compatibility)
It tries to find a method whose name corresponds
to the message name and its argument list, separated
by underscores, so for this invocation:
~[$myObject appendToResponse:$response inContext:$context];
( run in 0.335 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )