W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Re: [css-regions] Possible change to the Region interface

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 01 Oct 2013 20:22:54 +1000
Message-ID: <524AA27E.3010002@mcc.id.au>
To: Elliott Sprehn <esprehn@gmail.com>
CC: Simon Pieters <simonp@opera.com>, "www-style@w3.org" <www-style@w3.org>, Alan Stearns <stearns@adobe.com>
Simon Pieters:
>     You can make the return value sequence<(Region or Element or
>     PseudoElement)>

Elliott Sprehn wrote:
> That still requires multiple inheritance, what type do you represent
> that as in the C++?
>
> I'd rather we didn't have to implement some kind of abstract common base
> class to PseudoElement and Element just for Regions.

I don't think it necessarily requires multiple inheritance.  Maybe in 
your C++ layer you need to tag the values so you know what type they 
are, but if your getRegions() function can directly create a JS Array 
object to return then you wouldn't even need that.
Received on Tuesday, 1 October 2013 10:23:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 10:23:33 UTC