W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: Query about WebIDL extended attribute syntax

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
Message-ID: <20081113220926.GA19797@arc.mcc.id.au>

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

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:12 UTC