W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: 3 comments for the 0720 DOM spec...

From: <keshlam@us.ibm.com>
Date: Fri, 14 Aug 1998 09:26:49 -0400
To: www-dom@w3.org
Message-ID: <85256660.0048CD4A.00@us.ibm.com>
re point 1: Not all languages support enumerations per se. (Java's one
obvious example that doesn't, and the C implementation is not much more
than a self-calculating set of #defines.) I agree that in languages which
do have this feature, and especially in those which perform typechecking on
enums, providing the "named constants" in that form would be appropriate.
But I'm not sure how one formally states language-specific alternatives in
this sort of spec.

(This brings up an interesting question. If a user subclasses the DOM
objects, are they allowed to introduce other kinds of nodes? If so, the
enum approach would require that the enum also be subclassable to add
appropriate nodetypes. I'm not sure which languages that support enums also
support subclassing them. Of course if the node types are _not_ considered
extensible, that isn't an issue.)

Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.
Received on Friday, 14 August 1998 09:29:18 UTC

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