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

Parameterized externals #291

Open
jckarter opened this issue Jun 30, 2012 · 0 comments
Open

Parameterized externals #291

jckarter opened this issue Jun 30, 2012 · 0 comments

Comments

@jckarter
Copy link
Owner

It would be nice to be able to bind a related set of external functions with a single declaration. The mapping to C function names can be calculated in the attribute list, for example:

[T]
external ("sqrt" ++ letterForType("T")) sqrt(x:T) : T;

External definitions could also be parameterized, but would need a mechanism to define for what sets of parameters they should be instantiated.

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