Re: Properties on interfaces, of identical name
- From: Tim Janik <timj gtk org>
- To: Kang Jeong-Hee <Keizi mail co kr>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Properties on interfaces, of identical name
- Date: Fri, 18 Jul 2003 19:52:30 +0200 (CEST)
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]