Boris Zbarsky <[EMAIL PROTECTED]> writes:

> Antoine Junod wrote:
> > Yes. But that's using a plane to go to the rest-rooms. I only want to
> > write an interface for a (javascript) function that takes an array of
> > integer as argument, which array can be used as a javascript array in
> > the js code.
> 
> You can do that using the [array] stuff in IDL to have an actual array
> of longs. Of course then things suck on the caller (C++) side, where
> you will have to allocate a PRInt32[] of the right size.

The size of the array is fixed to 16 and thus is certainly not a big
problem to handle.

The only [array] stuff in idl I've seen so far is for functions
_returning_ an array of foo. Could you please point me to a link that
explain how to do that? (I've to admit I didn't find the power to read
the IDL BNF).

Thanks a lot for your reply!
A+
-AJ
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to