|
From: Ferdinando A. <na...@am...> - 2004-08-30 16:51:36
|
Hi Luigi >I'd create some kind of singleton Settings class through which >the global evaluation date can be set and retrieved, as in > >Settings::instance().evaluationDate() = Date(30,August,2004); >Date d = Settings::instance().evaluationDate() > >The stored date would be used whenever one needs to know what day it's >supposed to be, and the actual today's date would be returned if none >was set. I agree > (As a side effect, todaysDate() would eventually disappear >from TermStructure.) the side effect alone would have me to agree :) >Thoughts? why don't you post to the user list too? I guess we might receive worthwhile suggestions. ciao -- Nando |