Re: RE: Latest commits
Posted by Luigi Ballabio-2 on Jul 25, 2003; 3:58am
URL: http://quantlib.414.s1.nabble.com/Latest-commits-tp10269p10271.html
At 11:35 AM 7/25/03 +0200, Andre Louw wrote:
> > class MakeScheduler {
> > ...
> > operator Scheduler() {
> > return Scheduler(mandatory params, stub, fromEnd, ...);
> > }
> > };
>
>Is there a nice way of implementing the conversion operator in SWIG? Any
>examples in QuantLib?
As for Python, there's no need to export MakeScheduler since it has keyword
arguments---one can write
s = Scheduler(..., fromEnd = 1)
s = Scheduler(..., stub = Date(...))
For the other languages, I'll have to think about it...
Later,
Luigi