Hi Sven 2014-06-02 12:59 GMT+02:00 Sven Van Caekenberghe <s...@stfx.eu>:
> Hi José, > > Thanks for your feedback, suggestions and code. I incorporated a slightly > changed version (fixing the precision issue; you also did not provided the > necessary changes to support writing Fractions and ScaledDecimals). I also > added some unit tests. > Oh, yes, sorry, too late at night, I forgot to paste them, :) > > In #bleedingEdge: > > === > Name: STON-Core-SvenVanCaekenberghe.50 > Author: SvenVanCaekenberghe > Time: 2 June 2014, 12:52:39.808591 pm > UUID: ce24c992-4f32-4f3a-8853-a4a9cf55c453 > Ancestors: STON-Core-SvenVanCaekenberghe.49 > > Add support for Fractions and ScaledDecimals as primitive numbers (thx > José Comesaña): > > - add Fraction>>#stonOn: delegating to STONWriter>>#writeFraction: > - add ScaledDecimal>>#stonOn: delegating to > STONWriter>>#writeScaledDecimal: > - extended STONReader>>#parseNumber to allow / and s notations > - changed STONReader>>#parseNumberFraction to return pure Fractions as > required by ScaledDecimal > === > Name: STON-Tests-SvenVanCaekenberghe.45 > Author: SvenVanCaekenberghe > Time: 2 June 2014, 12:53:39.436939 pm > UUID: bf7a8e27-4b7b-4a0e-b517-6321c1da1694 > Ancestors: STON-Tests-SvenVanCaekenberghe.44 > > Add support for Fractions and ScaledDecimals as primitive numbers (thx > José Comesaña). > > Added specific tests for Fractions and ScaledDecimals > === > > Please let me know if this works for you. > > Regards, > > Sven > > Thank you very much for yor good work. It find it very useful. I have my on #toXml and #fromXml versions, but I think I will change to STON. Regards José Comesaña