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

RFC: Export functions for calling class methods from C #1342

Open
SeanTAllen opened this issue Oct 20, 2016 · 4 comments
Open

RFC: Export functions for calling class methods from C #1342

SeanTAllen opened this issue Oct 20, 2016 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@SeanTAllen
Copy link
Member

SeanTAllen commented Oct 20, 2016

This RFC proposes the addition of an export keyword to specify that functions for a class should be generated even if they are not used directly in the Pony program that is being compiled. Additionally, wrapper functions for these functions that conform to the C ABI will be generated, along with a .h file with the appropriate function signatures so that the functions can be easily used from a C program. The .h file will only be generated if the program is compiled with the --export compiler flag.

Note that in addition to code, this RFC has test and documentation requirements that have to be done in order to merge. Full RFC details are at:

https://github.com/ponylang/rfcs/blob/master/text/0018-export.md

@SeanTAllen
Copy link
Member Author

I believe that @aturley will be tackling this.

@SeanTAllen
Copy link
Member Author

@aturley when you start on this, please update to "in progress"

@aturley
Copy link
Member

aturley commented Oct 20, 2016

Yeah. I already have most of it implemented, but I'll move it to in progress when I start the process of whipping it into shape (tests, documentation, etc).

@SeanTAllen
Copy link
Member Author

@aturley do you still have the code for this around anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants