- From: Joris Huizer <joris_huizer@yahoo.com>
- Date: Wed, 9 Apr 2003 00:43:15 -0700 (PDT)
- To: Joseph Kesselman <keshlam@us.ibm.com>
- Cc: www-dom@w3.org
Hello,
Thank you Joseph Kesselman for you're reply.
Is my understanding correct that the suggested
structure from
http://xml.apache.org/xerces-c/ApacheDOMC++BindingL2.html
can be freely used ?
It's not like I'm going to finish something soon but,
you never know - some parts of the coding on that site
is somewhat like I wrote too, but other things are
better than what I thought of ofcourse. I see they
indeed use getLength() where needed - that answers my
initial question allright [currently I have a
getLength() method + a #define length getLength() but
that limits the use of the variable length;]
--- Joseph Kesselman <keshlam@us.ibm.com> wrote:
> Depends on the value. If it's a manefest constant,
> #define or a static
> final value is probably the right answer; if it's a
> value that varies from
> node to node, you want an exposed field or a getter
> method or something of
> that sort. (I'd suggest the getter, personally.)
>
> Note that some C++ implementations already exist;
> even if you're writing
> your own, you might want to look at their APIs as
> examples. See
> http://www.w3.org/DOM/Bindings for some of them.
> Note that in C++ you have
> to make a difficult decision about memory
> management, which the reference
> bindings were able to dodge since they were written
> in garbage-collected
> languages.
>
> ______________________________________
> Joe Kesselman, IBM Next-Generation Web Technologies:
> XML, XSL and more.
> "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the
> squeezebox and nobody
> gets hurt.")
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Received on Wednesday, 9 April 2003 03:43:17 UTC