|
From: DU V. DE V. F. G. P. <fra...@ca...> - 2007-07-12 12:49:50
|
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:=20 Explicit is better than implicit.=20 (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 ?=20 Fran=E7ois -----Original Message----- From: qua...@li... = [mailto:qua...@li...] On Behalf Of Luigi = Ballabio Sent: Thursday, July 12, 2007 1:44 PM To: Ferdinando Ametrano Cc: qua...@li...; fd...@us... 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/in= struments/bond.cpp?r1=3D11869&r2=3D11868&pathrev=3D11869> It seems that one of the two settlementDate() calls got lost... Luigi --=20 Zawinski's Law:=20 Every program attempts to expand until it can read mail. Those=20 programs which cannot so expand are replaced by ones which can.=20 -------------------------------------------------------------------------= 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 Qua...@li... https://lists.sourceforge.net/lists/listinfo/quantlib-dev |