Hi all,
I don't want to diminish my fault (sorry again folks). However, the fact that this bug has been made possible by a default argument remind me the following verse:
Explicit is better than implicit.
(The Zen of Python, by Tim Peters)
IMHO default parameters can help to save typing but can also form nasty traps in that they provide quite realistic wrong values and thus hard to detect bugs. (In this case I have been quite lucky that this bug show up). I would even dare to say that sometimes they might even reduce code explicitness.
Any thoughts ?
François
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Luigi Ballabio
Sent: Thursday, July 12, 2007 1:44 PM
To: Ferdinando Ametrano
Cc:
[hidden email];
[hidden email]
Subject: Re: [Quantlib-dev] [QuantLib-svn] SF.net SVN: quantlib:[11869] trunk/QuantLib
On Thu, 2007-07-12 at 13:01 +0200, Ferdinando Ametrano wrote:
> Your change broke 3 test suites (asset swap, bonds, and convertible
> bonds)
Probably this change:
<
http://quantlib.svn.sourceforge.net/viewvc/quantlib/trunk/QuantLib/ql/instruments/bond.cpp?r1=11869&r2=11868&pathrev=11869>
It seems that one of the two settlementDate() calls got lost...
Luigi
--
Zawinski's Law:
Every program attempts to expand until it can read mail. Those
programs which cannot so expand are replaced by ones which can.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev