[Seaside-dev] How portable is the Fraction class?

John O'Keefe wembley at instantiations.com
Fri Mar 2 14:09:56 UTC 2012


Only Fractions (not Integers) answer true to #isFraction in VA Smalltalk.

John O'Keefe [|], CTO/Principal Smalltalk Architect, Instantiations Inc.
Skype: john_okeefe2     Mobile:  +1 919 417-3181 (Business hours USA
Eastern Time zone (GMT -5))
john_okeefe at instantiations.com
http://www.instantiations.com
*VA Smalltalk...Onward and Upward!*


On Thu, Mar 1, 2012 at 3:19 PM, Philippe Marschall <
philippe.marschall at gmail.com> wrote:

> Hi
>
> In Pharo 1.4 both Integer and Fraction answer #isFraction with true.
> Therefore GRPlatformTest >> #testSeconds fails. A proposes work around
> is to use to use isKindOf: Fraction instead of #isFraction. How
> portable is this? Does anybody not have a Fraction class?
>
> Cheers
> Philippe
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20120302/5b1b1909/attachment.htm


More information about the seaside-dev mailing list