Re: [PrototypeRoot]

On Sat, 20 Jun 2009, Cameron McCormack wrote:
>
> Ian Hickson:
> > I don't really mind exactly what the solution is; my only concern here 
> > would be that I'd be throwing [PrototypeRoot] around a lot.
> 
> Acknowledged.  If you can propose a way of defining this without needing
> to use [PrototypeRoot] a lot, that’d help.

Given an object and a list of interface that it implements, remove 
interfaces from the list that match any of the following conditions:

  - the interface was on the right hand side of an 'implements' clause the 
    left hand side of which lists an interface that the object implements

  - the interface is inherited from another interface the object 
    implements

  - the interface has [NoInterfaceObject]

...you should be lift with one interface. Use its name as the [[Class]].

Are there any objects where that leaves an ambiguity?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 20 June 2009 07:39:55 UTC