W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12845] Disallow shadowing attributes

From: <bugzilla@jessica.w3.org>
Date: Thu, 30 Jun 2011 04:42:15 +0000
To: public-script-coord@w3.org
Message-Id: <E1Qc94x-0004fU-4R@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12845

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #37 from Cameron McCormack <cam@mcc.id.au> 2011-06-30 04:42:14 UTC ---
OK, I've added syntax for this:

  interface Ancestor {
    readonly attribute DOMString whatever;
  };

  interface Derived : Ancestor {
    attribute DOMString whatever inherits getter;
  };

Object.getOwnPropertyDescriptor(Derived.protoype, "whatever").get will be a
distinct object from Ancestor.prototype.whatever's, but they will have the same
behaviour.  There is no need to define Derived::whatever's get behaviour in
prose.

(I didn't use extended attributes for this since it's not really optional,
language binding specific behaviour.)

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.328;r2=1.329;f=h

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 30 June 2011 04:42:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC