-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
auto-generated ctors vs Rest args #8531
Comments
This probably should be handled in generators. |
so we're (partially) implementing non-extern rest args?:) |
Do we have any option currently to override extern methods with rest args? |
Nope, also can't implement interfaces that require rest args. |
I think I'll add support for |
OTOH this is annoying because we have to detect the cases where we have to generate |
Personally I think we should support rest args in Haxe syntax. All (afaik) our targets support rest arguments. And if some of them don't then it's ok to implement it as @:coreType abstract Rest <T> {
@:to function toArray():Array<T>... |
I'm not a fan of rest args and the implicit allocations they usually bring. Also I don't think C/C++ support rest arguments like this. Newer C++ has the That said, maybe we should still have it for the sake of interop, just not in a nicely sugared syntax. |
will generate (JS, but also other targets, actually discovered on Flash):
The text was updated successfully, but these errors were encountered: