Login  Register

Re: Trying to extend functions into Lua

Posted by Luigi Ballabio on Sep 12, 2012; 1:13pm
URL: http://quantlib.414.s1.nabble.com/print-vs-assign-output-in-QuantLib-SWIG-tp12595p12597.html

Hi Tawanda,
    sorry it took so long.  The default typemaps provided by SWIG let
native objects for a few languages (such as PyObject* for Python) pass
through unmodified.  I don't think the support is there for Lua,
though.  You should extend the typemaps to do this, but I think you'd
have more luck asking on the SWIG mailing list; I guess they would be
interested in adding your patches to their repository.

Later,
    Luigi

On Tue, Aug 28, 2012 at 3:03 AM, Tawanda Gwena <[hidden email]> wrote:
> Hi again (Luigi)
>
> I am trying to emulate the way you built the UnaryFunction class in functions.i.
>
> My question is how did you know or arranged for the UnaryFunction constructor to accept the PyObject* object (or the Scheme_Object* and function_ in scheme). I am trying to figure out what Lua sends. I guess this is more about understanding SWIG.
>
> Thanks
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev