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

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