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

Should non-callback interfaces be allowed to inherit from callback interfaces?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 14 Jun 2012 14:41:11 -0400
Message-ID: <4FDA3047.5040608@mit.edu>
To: public-script-coord@w3.org
The spec says that a callback interface must not inherit from a 
non-callback interface.  But it seems to allow the inheritance the other 
way around, so this looks like valid WebIDL to me:

   callback interface Foo {};
   interface Bar : Foo {};

That seems pretty odd to me.  I believe that should be disallowed.

-Boris
Received on Thursday, 14 June 2012 18:41:40 UTC

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