On 7/23/17 9:58 PM, Enrico Weigelt, metux IT consult wrote:
what's the difference between idl and webidl ?

Brief summary.  IDL:

1) Generates xptcall information for xpconnect to allow calling from JS and into JS (via synthetic vtables).
2)  Generates headers that declare pure virtuals.
3)  Is used for defining XPCOM interfaces.

(you can do just #2 without #1 if the interface is not scriptable).

WebIDL:

1) Generates C++ glue code to allow calling from JS (or into JS in the case of callbacks or callback interfaces). 2) Is used for defining things that are part of the web platform. Is standardized at https://heycam.github.io/webidl/

I've noticed that webidl's seem to support preprocessor directives
(eg. #ifdef), while the others dont.

That is one of the many differences, yes. They also have different use cases, different syntax, different output.

-Boris

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to