We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that we can't pass varargs.
extern fun printf1 {ts:types} (fmt: string, args: ts): void = "mac#printf" extern fun printf2 {ts:types} (fmt: string, args: ts): void implement printf2 {ts} (fmt, args) = printf1 {ts} (fmt, args) implement main0 () = let val _ = printf1 ("%s\n", $vararg("helloworld")) val _ = printf2 ("%s\n", $vararg("helloworld")) // can't do this, causing C syntax errors. in end
The text was updated successfully, but these errors were encountered:
Hi,
I have not tried your sample, but there is an example use case of variadic arguments, here: https://github.com/githwxi/ATS-Postiats/blob/master/doc/EXAMPLE/TESTATS/variadic.dats
If it does not help, I may try to look further (just can’t promise).
Sorry, something went wrong.
No branches or pull requests
It seems that we can't pass varargs.
The text was updated successfully, but these errors were encountered: