manwar / Data-Money

Money/currency with formatting and overloading.
Artistic License 2.0
4 stars 3 forks source link

Issue 6 - Update clone to account for existing 'value' #9

Closed mrenvoize closed 3 years ago

mrenvoize commented 3 years ago

Update clone to include the original object value.

I intend to add tests for this sub.. currently, there appears to be none :(

This is a change of functionality however as prior to this change cloned objects would always result in a 0 value object unless a value was passed... would you prefer I take the approach of adding a 'copy' method?

manwar commented 3 years ago

Thanks for your contributions. @mrenvoize