Re: Properties on interfaces, of identical name



On Wed, 9 Jul 2003, Kang Jeong-Hee wrote:

> http://bugzilla.gnome.org/show_bug.cgi?id=105894
> is considering about properties on interfaecs.
>
> Then, what about implementing properties from many interfaces
> of identical name? For instance, W3C DOM HTML declare interfaces
> HTMLImageElement, HTMLAppletElement and HTMLObjectElement,
> with attribute 'name' for all of them. HTML Recommendation
> describe OBJECT element is superset of IMG and APPLET element.
>
> So I assume that implementation of HTMLObjectElement
> should implement HTMLImageElement and HTMLAppletElement, too.
> How to distinguish properties from each interfaces?

there'll be no way to distinguish the property by interface for
the same instance.
basically interfaces can just "request" for an instance to implement
a certain property, so there really is nothing to distinguish.
so something like IntIface requesting Int::name, and StringIface
requesting string::name can't possibly work for a class that
is meant to implement both interfaces.

> It may not be a problem for HTML*Element in this case.
> But other instances may be problem, if each interfaces
> have really different meaning for the attribute 'name'.
>
> Regard,
> kz.
>
> ps. bug 105894 is holding my project. :(

---
ciaoTJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]