« Return to Thread: SWIG newbie questions: R SWIG errors or warnings? is R SWIG functional?

Re: SWIG newbie questions: R SWIG errors or warnings? is R SWIG functional?

by Joseph Wang-2 :: Rate this Message:

Reply to Author | View in Thread

On Sunday 27 April 2008 01:24:58 am Soeren Sonnenburg wrote:

About scoercein, I commented them in the Lib/r files which means that it won't
emit any of the coercion code.

> OK, I came up with a patch that solves this problem (for me):
>
> I save the args in a argv list and if use is.numeric(argv[[1]]) for
> numeric types ...

The patch you put in doesn't seem to break any of the regression tests or my
QuantLib demos, so I've checked it into trunk.

> Another issue I've noticed is with 'garbage collection': There seems to
> be a problem when I use
>
> %feature("ref")  and %feature("unref"), could it be a problem that the
> C++ functions I've bound to this are named ref() and unref()?

What's the exact nature of the problem?  I haven't much work with making sure
that memory management works correctly so there might be a lot of things that
are broken.



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: SWIG newbie questions: R SWIG errors or warnings? is R SWIG functional?

LightInTheBox - Buy quality products at wholesale price