user_data and language bindings

Tobias Peters <[email protected]>
Newsgroups gmane.comp.gnome.gdome
Message-ID <Pine.HPP.3.96.1020405092249.2378C-100000@hpux16.hrz.uni-oldenburg.de>
This just comes to my mind, but I am not sure about this (and don't have
the time to investigate it right now):

I think you cannot use the user_data field and at least some of the
language bindings of gdome simultaneously. Because some of the language
bindings use the user_data field for their own purpose, as does gdome2
with the _private field in the libxml nodes: to ensure that at any time at
most one object in the wrapper language corresponds to a given gdome2
node.

I only know for sure that at least early versions of my Ruby and C++
wrappers did not do this, and as a result you could not compare DOM nodes
based on the object identity of their wrapper nodes, but would have used a
isSameNode method as proposed by DOM level 3.

Now I cannot remember for sure if I just planned to use the user_data
field or if I already did it in the last release. I think the Perl wrapper
does something similar, as I remember vaguely to have read a mail from TJ
on that subject.

Tobias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.