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

Support for static functions #46

Closed
billyquith opened this issue Aug 24, 2016 · 1 comment
Closed

Support for static functions #46

billyquith opened this issue Aug 24, 2016 · 1 comment
Assignees
Milestone

Comments

@billyquith
Copy link
Owner

Currently Ponder does not support class static and non-class functions. It would be nice to have this. The current function implementation is really a method.

  • Rename class functions to method?
  • Allow namespacing?
@billyquith billyquith added this to the 1.4 milestone Aug 24, 2016
@billyquith billyquith self-assigned this Aug 24, 2016
billyquith added a commit that referenced this issue Aug 29, 2016
- Previously all function had signature R(C, ...), now R(...) allowed.
- Class::callStatic() added to call without adding class instance argument.
- Issue #46.
billyquith added a commit that referenced this issue Aug 29, 2016
* statfunc:
  Add Function::callStatic() docs.
  Ponder now supports static functions. - Previously all function had signature R(C, ...), now R(...) allowed. - Class::callStatic() added to call without adding class instance argument. - Issue #46.
  static function traits checks
  Static function trait tests. Refinements.

# Conflicts:
#	include/ponder/detail/functionimpl.hpp
@billyquith
Copy link
Owner Author

This works. Currently static functions have to called with callStatic.

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

1 participant