W3C home > Mailing lists > Public > www-svg@w3.org > October 2000

Re: idl

From: Stephane Conversy <conversy@emn.fr>
Date: Tue, 24 Oct 2000 14:53:45 +0200
Message-ID: <39F58659.6FF12BB2@emn.fr>
To: www-svg@w3.org
> The SVG IDL was made to copy the techniques used by IDLs in other W3C
> specifications. The main reason the SVG IDL doesn't use enumerations is
> that the other specs don't use them either.

That's to bad since enumeration are a way to catch type errors when setting
an attribute, or calling a method.

> The lack of enumerations in
> Java and JavaScript is probably why all W3C spec don't have enumerations in
> their IDLs.

And that's much too bad since enumeration  are easily translated in short int
when they are not handle by a language.
Anyway, I can cope with that.

However, there some strange stuff from place to place in the idl.
For example, there is a 'NumberList' interface, which can be used
in an interface that owns, well, a list of number. But there is no
DOMStringList, thus the SVGTests interface uses a nuntyped List, which is said

in the RFC to handle 'only DOMString'.
It's the same for SVGTextRotate(List angles) or AnimatedPathData...

What is the reason behind that ?

Thank you.

Received on Tuesday, 24 October 2000 08:52:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:49 UTC