[Webkit-unassigned] [Bug 16401] [GTK] GObject/C DOM binding
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 11 09:36:33 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=16401
------- Comment #151 from adam at yorba.org 2009-02-11 09:36 PDT -------
> > When are properties actually useful?
>
> Another very important point is that they allow automatic binding generation
> through gobject-introspection with the right semantics.
gobject-introspection is aware of both properties and methods. The Vala
bindings generator, for example, uses (a version of) gobject-introspection to
find out about GObject classes. Each GObject property becomes a Vala property,
and each GObject method becomes a Vala method. With the current patch DOM
objects have both properties and getters/setters, and all of these end up
reflected into the Vala world. So in Vala you could write either
node.parent_node or node.get_parent_node(), for example.
It's not clear to me what you mean by "the right semantics" here. Are you
asserting that DOM attributes should be reflected into higher-level languages
as properties in those languages, and that gobject-introspection can enable
that only if they are available as GObject properties? Is there some specific
application or use case that will suffer if attributes are available only
through getters/setters?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list