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

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

From: Alejandro Lapeyre <ale@alejandrolapeyre.com.ar>
Date: Sun, 12 Jun 2005 02:39:26 -0300
Message-ID: <000201c56f11$1900b0d0$f855fcc9@astor>
To: <www-dom@w3.org>

That was in a message from 14 Aug 1998

>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.

Why do you say that Java does not support enumerations?
Wouldn't a simple interface with the constants defined inside be enough?

Best Regards, 
Alejandro Lapeyre
Received on Sunday, 12 June 2005 05:39:54 UTC

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