How portable is the Fraction class?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How portable is the Fraction class?

Philippe Marschall
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: How portable is the Fraction class?

Dale Henrichs
gemstone check...

----- Original Message -----
| From: "Philippe Marschall" <[hidden email]>
| To: "Seaside - developer list" <[hidden email]>
| Sent: Thursday, March 1, 2012 12:19:52 PM
| Subject: [Seaside-dev] How portable is the Fraction class?
|
| 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
| [hidden email]
| http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
|
_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: How portable is the Fraction class?

John O'Keefe
In reply to this post by Philippe Marschall
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))
[hidden email]
http://www.instantiations.com
VA Smalltalk...Onward and Upward!


On Thu, Mar 1, 2012 at 3:19 PM, Philippe Marschall <[hidden email]> 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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev