|
From: Luigi B. <lui...@gm...> - 2010-02-17 09:21:33
|
On Tue, 2010-02-16 at 19:09 +0000, na...@us... 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 |