From: William S F. <ws...@fu...> - 2007-09-30 18:53:47
|
Michael Dehmlow wrote: > I'm completely new to swig and would like to return an array: > > //local variables > int arr[10]; > // > int * MyClass::getArr(){ > return arr; > } > > My problem is slightly more complex then this, I have an array of structs > and one of the members is an array. I would like to return that array. > > This compiles to the return of a SWIGTYPE_p_int which is under standable but > is there a way to return a java array of ints (easily)? > See postings earlier this week which have discussed Java array handling. William |