
22 Nov
2008
22 Nov
'08
7:25 p.m.
Thijs van den Berg wrote:
Would it be safe for me to assume that * if a distribution validate its parameters in the constructor * if the constructor doesn't throw an error then * there is no need to check the distribution parameters anymore after construction, e.g. in a non-member function.
No, the parameters may be invalid, but the current policy may dictate returning an error *value*, in such cases the constructor has to defer signally the error until some other function is called that tries to use the distribution and which returns a value. John.