Re: [QuantLib-svn] SF.net SVN: quantlib:[17105] trunk/QuantLib/ql/cashflows

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-17105-trunk-QuantLib-ql-cashflows-tp12374.html

On Tue, 2010-02-16 at 19:09 +0000, [hidden email] wrote:
> Revision: 17105
>           http://quantlib.svn.sourceforge.net/quantlib/?rev=17105&view=rev
> Author:   nando
> Date:     2010-02-16 19:09:58 +0000 (Tue, 16 Feb 2010)
>
> Log Message:
> -----------
> added more Coupon inspectors

We're duplicating code all over the place---they're all basically the
same loop.  Why don't you write a nextCoupon() method instead and call
whatever method you want on the result?

Luigi


--

These are my principles, and if you don't like them... Well, I have
others.
-- Groucho Marx



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev