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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 20 Jun 2012 16:02:32 +1000
Message-ID: <4FE16778.6030007@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Boris Zbarsky:
> 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.

It should indeed, and now is:

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.531;r2=1.532;f=h
Received on Wednesday, 20 June 2012 06:03:14 UTC

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