Open seandenigris opened 3 years ago
Are AnDollar and AnCent available somewhere to look at them?
Are AmDollar new
creating a new unit each time or it's the same? If there are different instances probably the conversions will not simplify them because it will consider them as different units... I find a bit strange that you want a new class for every currency...
Maybe a model where you have a more generic class for cents and for currencies makes more sense.. and dollar/cents of dollars will be just instances.. Obviously you will need a place to have these well known instances so will allways get the same one for the dollar
I tried the following and got
aMeasureBag
back, but I expected10.21
Also I tried
convertTo:
but got a subclassResponsibility error...where:
and