-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LC-36] disallow calling operations with funny order optional arguments
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Web IDL</title> | ||
<meta name="revision" content="$Id: Overview.html,v 1.364 2011-08-29 01:06:47 cmccorma Exp $" /> | ||
<meta name="revision" content="$Id: Overview.html,v 1.365 2011-08-29 04:28:03 cmccorma Exp $" /> | ||
<link rel="stylesheet" href="WebIDL.css" type="text/css" /> | ||
<script src="section-links.js" type="application/ecmascript"></script> | ||
<script src="dfn.js" type="application/ecmascript"></script> | ||
|
@@ -49,7 +49,7 @@ <h2>Abstract</h2> | |
http://www.w3.org/mid/[email protected] | ||
--> | ||
|
||
<div class="ednote"><div class="ednoteHeader">Editorial note</div><p>This version of the document is built from source revision $Id: Overview.xml,v 1.365 2011/08/29 00:39:12 cmccorma Exp $.</p><p> | ||
<div class="ednote"><div class="ednoteHeader">Editorial note</div><p>This version of the document is built from source revision $Id: Overview.xml,v 1.366 2011/08/29 01:06:47 cmccorma Exp $.</p><p> | ||
There are 3 further editorial notes in the document. | ||
|
||
In addition, there is a list of <a href="http://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;product=WebAppsWG&amp;component=WebIDL&amp;longdesc_type=allwordssubstr&amp;longdesc=&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;status_whiteboard_type=allwordssubstr&amp;status_whiteboard=&amp;keywords_type=allwords&amp;keywords=&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailtype1=substring&amp;email1=&amp;emailtype2=substring&amp;email2=&amp;bug_id_type=anyexact&amp;bug_id=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Importance&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=">open bugs</a> on the document, some of which may be covered by editorial notes. | ||
|
@@ -1422,6 +1422,19 @@ <h4>3.3.3. Operations</h4> | |
</p> | ||
<pre class="syntax"><i>return-type</i> <i>identifier</i>(<i>type</i> <i>identifier</i>, optional <i>type</i> <i>identifier</i>);</pre> | ||
|
||
<p> | ||
Web IDL operations do not support being called with omitted optional arguments | ||
unless all subsequent optional arguments are also omitted. Bindings for | ||
languages that do support function calling in this way will fail such | ||
calls in a language binding specific manner. | ||
</p> | ||
<div class="note"><div class="noteHeader">Note</div> | ||
<p> | ||
ECMAScript and Java, the two language for which bindings are specified | ||
in this document, do not support function calling like this. | ||
</p> | ||
</div> | ||
|
||
<div class="example"><div class="exampleHeader">Example</div> | ||
<p> | ||
The following <a class="dfnref" href="#dfn-idl-fragment">IDL fragment</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,7 +233,7 @@ Status: accepted | |
From: Travis Leithead <[email protected]> | ||
Title: explicitly disallow passing optional parameters out of order | ||
URL: http://www.w3.org/mid/9768D477C67135458BF978A45BCF9B3830836BF5@TK5EX14MBXW602.wingroup.windeploy.ntdev.microsoft.com | ||
Status: raised | ||
Status: accepted | ||
|
||
[LC-37] | ||
From: Travis Leithead <[email protected]> | ||
|