renodino has asked for the wisdom of the Perl Monks concerning the following question:
in the client stub, but the docs are a bit sketchy about what to return if the nomethod coderef doesn't implement the specified operator; should it just return undef, or something else ? Do I need to use 'fallback => 1' with nomethod ?use overload nomethod => \&operAutoLoad;
Also, how do I go about introspecting a class to find its overloads ? (I need the latter so that POPOs can be handled by Thread::Apartment::Server's default introspection, which would return a list of operators which the class overloads).
Any help much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Operator overloading, nomethod, and Introspection
by diotalevi (Canon) on Sep 13, 2005 at 17:30 UTC | |
|
Re: Operator overloading, nomethod, and Introspection
by ikegami (Patriarch) on Sep 13, 2005 at 17:26 UTC |