IPDL has a native array type

Chris Jones <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Probably worth posting here, to make sure everyone writing IPDL 
protocols knows about it.

Last week I added a native array type to IPDL, so that instead of 
writing specifications like

   include "nsTArray";
   using nsTArray<nsCString>;
   protocol Foo {
     child: Msg(nsTArray<nsCString> args);
   };

one can now write

   protocol Foo {
     child: Msg(nsCString[] args);
   };

Because the native IPDL array type plays well with IPDL actor types and 
unions (which nsTArray does *not*), and because the syntax is simpler, I 
don't hesitate to say that nsTArray should be banned from protocols.

Cheers,
Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.