W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: [WebIDL] Would it make sense to add annotations for "creates a new object each time" and "always returns the same object"?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 27 Aug 2013 14:24:03 -0400
Message-ID: <521CEEC3.20505@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>
CC: Jonas Sicking <jonas@sicking.cc>, Ojan Vafai <ojan@chromium.org>, Glenn Adams <glenn@skynav.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On 7/23/13 1:37 AM, Cameron McCormack wrote:
> I added [SameObject] (on attributes) and [NewObject] (on operations)
> extended attributes.  I chose not to go with [Creator], since that could
> be confused with the "creator" keyword.
>
> http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.642;r2=1.643;f=h

Why is [SameObject] restricted to interface types?  In particular, why 
does it not allow "object" return values, or IDL array return values?

-Boris
Received on Tuesday, 27 August 2013 18:24:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC