W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

Re: simple dom implementation

From: Joris Huizer <joris_huizer@yahoo.com>
Date: Wed, 9 Apr 2003 00:43:15 -0700 (PDT)
Message-ID: <20030409074315.51862.qmail@web20202.mail.yahoo.com>
To: Joseph Kesselman <keshlam@us.ibm.com>
Cc: www-dom@w3.org


Thank you Joseph Kesselman for you're reply.
Is my understanding correct that the suggested
structure from
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
Received on Wednesday, 9 April 2003 03:43:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC