Re: Checked in quantlib-perl

Posted by Joseph Wang on
URL: http://quantlib.414.s1.nabble.com/Checked-in-quantlib-perl-tp10887p10889.html

Luigi Ballabio wrote:

>
> 1) there's a few SWIG warnings due to its not wrapping operator(). Is  
> there any special way in Perl to call function objects, or should we  
> just rename to methods such as "value"?
>
There doesn't seem to be any convention so we can probably invent one.  
value seems alright.

> 2) With some guesswork, I modified the European option example so
> that  it uses the generated shadow classes rather than the low-level  
> QuantLibc functions---I just committed it. But since I don't know
> Perl,  I couldn't figure out how to avoid having to write QuantLib::  
> everywhere. may you have a look at it?

I know perl, but I'm trying to figure out SWIG :-(

The trouble is that in perl QuantLib and QuantLib::Date are both symbols
that have nothing to do with each other.  There may some clever SWIG way
of solving this, but it's not immediately obvious.

Linking in perl with quantlib was remarkable easy.

Now for something really challenging.....

I see there are experimental SWIG interfaces for clisp and R.  Now
maxima works in clisp......


>
> Later,
>     Luigi
>
> ----------------------------------------
>
> Call on God, but row away from the rocks.
> -- Indian proverb