[Zope3-dev] Interface declaration API

Steve Alexander steve@cat-box.net
Tue, 11 Mar 2003 00:26:17 +0200


>   class C(A, B):
> 
>      implements(IFoo, implementedBy(A), implementedBy(B))
> 
> Steve suggested that if you used a class where an interface
> specification was expected that you'd get it's instance
> interface declaration:
> 
>   class C(A, B):
> 
>      implements(IFoo, A, B)
> 
> I worry that this is too magic.

I agree -- we're only protected by the convention of interface types 
begining with an 'I'.

How about allowing implementedBy to take a number of classes?

   class C(A, B):
     implements(IFoo, implementedBy(A, B))


--
Steve Alexander