J
Jeff Mitchell
Hi,
I would like to get the arity of a method. However, arity is a method
of Method, and I can only get a Method from the method method of Object
(phew!).
So it appears impossible to get the arity of a method in a class
without making an instance of that class. Is this true?
A hypothetical use would be to print out all classes with their arity
at a given time during execution (and making dummy instances could
cause unwanted side-effects).
-qs
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
I would like to get the arity of a method. However, arity is a method
of Method, and I can only get a Method from the method method of Object
(phew!).
So it appears impossible to get the arity of a method in a class
without making an instance of that class. Is this true?
A hypothetical use would be to print out all classes with their arity
at a given time during execution (and making dummy instances could
cause unwanted side-effects).
-qs
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com