Re: [PATCH] Payoffs fully implemented in a foreign language via SWIG
Posted by
andrea-110 on
URL: http://quantlib.414.s1.nabble.com/PATCH-Payoffs-fully-implemented-in-a-foreign-language-via-SWIG-tp13242p13248.html
On 22/01/10 11:06, Luigi Ballabio wrote:
> On Wed, 2010-01-20 at 21:08 +0000, Andrea wrote:
>> It looks like it makes things a lot easier.
>> Basically one has to export the raw C++ inheritance.
>> Then swig will remove all differences between pointers, references,
>> shared_ptr, wrapping them when needed.
>> I think it would simplify what Quantlib-SWIG does now, where it needs
>> to expose classes inheriting from shared_ptr<I> rather than I itself.
>
>> It is very likely that the user will not notice any difference.
>
> Ok, I see. Yes, that would simplify the interfaces somewhat. However,
> there's the problem that shared_ptr is not supported in all the
> languages we're exporting to.
>
>> Coming back to my original problem, unfortunately it seems that using
>> shared_ptr and directors does not work (yet?) (SWIG generates invalid
>> Java code). So for the time being the code I posted at the top of the
>> thread is still my best solution.
>
> Ok, I'll look at it. Thanks.
>
> Luigi
>
>
>
For the problem with directors, feel free to join me here
http://article.gmane.org/gmane.comp.programming.swig/15606Andrea
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev