On Thu, Dec 11, 2008 at 9:43 AM, Joe Strout wrote:
> On Dec 10, 2008, at 10:19 PM, Nok wrote:
>
>> I can't get call-by-reference functions to work in SWIG...
>
> Python doesn't have any call-by-reference support at all [1], so I'm not
> surprised that a straight translation of the call-by-referenc
On Dec 10, 2008, at 10:19 PM, Nok wrote:
I can't get call-by-reference functions to work in SWIG...
Python doesn't have any call-by-reference support at all [1], so I'm
not surprised that a straight translation of the call-by-reference C
function doesn't work.
Unfortunately I don't know
I can't get call-by-reference functions to work in SWIG...
Even when wrapping a trivial example like this:
/* File : trivial.i */
%module trivial
%inline
%{
class test
{
public:
void foo(int *t)
{
*t=42;
}
};
%}
I get a TypeError when trying to use it:
import trivial
I can't get call-by-reference functions to work in SWIG...
Even when wrapping a trivial example like this:
/* File : trivial.i */
%module trivial
%inline
%{
class test
{
public:
void foo(int *t)
{
*t=42;
}
};
%}
I get a TypeError when trying to use it:
import trivial