RE: Latest commits
Posted by Andre Louw-2 on Jul 23, 2003; 4:39am
URL: http://quantlib.414.s1.nabble.com/Latest-commits-tp10269p10278.html
Luigi,
Some questions on the so-called "named parameter paradigm" as per your
comments on Scheduler.
Scheduler s1 = MakeScheduler(mandatory parameters).withStubDate(d);
Scheduler s2 = MakeScheduler(mandatory parameters).backwards();
Scheduler s3 = MakeScheduler(mandatory
parameters).withStubDate(d).backwards();
Am I correct to assume "withStubDate" would be defined something like
> Scheduler withStubDate(const Date& date) {
> stubDate_ = date;
> return *this;
> }
On the other hand this could erroneously be assumed to be a constructor,
which of course it isn't! Am I missing something? Also, some flag would need
to be set to force creation/recreation of the date vector?
Thanx
Andre