- From: Cameron McCormack <cam@mcc.id.au>
- Date: Fri, 14 Nov 2008 09:09:26 +1100
- To: Herman Venter <hermanv@microsoft.com>
- Cc: public-webapps@w3.org
Hi Herman. Herman Venter: > An extended attribute is specified as an identifier optionally > followed by some additional information. There are four forms an > extended attribute may have: > > * [TheExtendedAttribute], where it takes no argument; > * [TheExtendedAttribute(ArgumentList)], where it takes an argument list; > * [TheExtendedAttribute=identifier], where it takes an identifier; and, > * [TheExtendedAttribute=identifier(ArgumentList)], where it takes a named argument list. > > I can find no examples of IDL files using the last of the four forms. > Can someone point me to such an example and preferably an explanation > of why the second form cannot be used for the same purpose? It’s used by [NamedConstructor]. It uses a named argument list so that a name for the constructor function can be given. See http://dev.w3.org/2006/webapi/WebIDL/#NamedConstructor for an example. -- Cameron McCormack ≝ http://mcc.id.au/
Received on Thursday, 13 November 2008 22:10:24 UTC