W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: Type-safe iteration over the DOM in DOM 2 & 3?

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 21 Mar 2001 16:08:12 -0500
To: www-dom@w3.org
Message-ID: <OF3F06C834.22BA110C-ON85256A16.0073C10E@pok.ibm.com>

>accept(Visitor v)
>    v.execute(this);

I'm afraid I really don't see a meaningful difference, in that case,
between calling mynode.accept(myvisitor)  and calling
myvisitor.execute(mynode) directly. A difference only arises when accept()
starts doing other things... and as I noted, the moment it does so you run
into compatability problems between your visitors and visitees, and I don't
see a way to define that cleanly at the API level.

Joe Kesselman  / IBM Research
Received on Wednesday, 21 March 2001 16:08:15 UTC

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