hsloot / cvalr

Credit derivative valuation in R
Other
1 stars 2 forks source link

[BUG] Default initialization #5

Closed hsloot closed 3 years ago

hsloot commented 3 years ago

Summary

The constructors of the S4 classes do not properly deal with the case that sometimes coercion happens for internal reasons and in that process, by default, the initializers get called without arguments. This happens, e.g., if validObject is called. For this reason, it would be preferable if the constructors allow for an empty construction, which does not call validObject.