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

overload convention #358

Open
oovm opened this issue May 12, 2024 · 1 comment
Open

overload convention #358

oovm opened this issue May 12, 2024 · 1 comment

Comments

@oovm
Copy link

oovm commented May 12, 2024

Currently, each function has a different name.

Can we add #overload(target_name) to require languages that support overloading to generate an overloaded version of the function?

Different languages have different overload resolutions, so the selected function instances will be different.

This is an unsafe ffi operation, so it is just a overload suggestion.

The overload version is generated based on the original version.

In case of error resolution, the user can manually call the function of the original version.

@lukewagner
Copy link
Member

That's a good question, and it's something we're also discussing in #331, based on a slightly different use case. My current best working theory is in this comment.

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

2 participants