Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed support for Reflection functions that get number of methods of a class. #13069

Open
krishnadey30 opened this issue May 22, 2019 · 0 comments

Comments

@krishnadey30
Copy link
Member

I believe it will be very useful if, especially for the unit test framework if it were possible to get the number of methods present in a class. This will be helpful to get the name of a method or to call the method.

// Return the number of methods in a class.
proc numMethods(type t) param : int
  return __primitive("num method", t);
@krishnadey30 krishnadey30 changed the title Proposed support for Reflection functions that get no of methods of a class. Proposed support for Reflection functions that get number of methods of a class. May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants