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

[operations] Support for optional / default value #1

Open
paraboul opened this issue Jan 13, 2016 · 0 comments
Open

[operations] Support for optional / default value #1

paraboul opened this issue Jan 13, 2016 · 0 comments

Comments

@paraboul
Copy link
Member

Example here : https://chromium.googlesource.com/chromium/blink/+/master/Source/core/xmlhttprequest/XMLHttpRequest.idl#62

boolean foobar(long x, optional int last = 42);

This should create only one C++ virtual function with 2 arguments.
The overload resolution algorithm must check (in that case) for 1 and 2 arguments.

This means that a similar prototype with one argument is not valid. e.g. :

boolean foobar(long x, optional int last = 42);
boolean foobar(long x); // WRONG
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