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

Define functions with no receiver (for the purpose of C callbacks). #701

Closed
jemc opened this issue Apr 6, 2016 · 2 comments
Closed

Define functions with no receiver (for the purpose of C callbacks). #701

jemc opened this issue Apr 6, 2016 · 2 comments

Comments

@jemc
Copy link
Member

jemc commented Apr 6, 2016

We'd like some way to define functions for C callbacks that don't follow the pattern of passing the void * for the receiver as the first argument. This implies functions where all of the parameters are explicit, with no implicit receiver argument at the front.

@jemc
Copy link
Member Author

jemc commented Apr 6, 2016

The syntax for this might look something like using cfun and no cap or perhaps fun c where fun [cap] is expected in a function declaration. That's one idea.

@jemc
Copy link
Member Author

jemc commented Nov 2, 2016

This should go through the RFC process. Closing in favor of ponylang/rfcs#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant