Skip to content

Parameterized externals #291

jckarter opened this Issue Jun 30, 2012 · 0 comments

1 participant


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:

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
Something went wrong with that request. Please try again.