Was paging through make output for smalltalk--devo--2.2--patch-178 and
spotted a weird error message that nevertheless didn't break the
compile.

st> (ScaledDecimal whichClassIncludesSelector: #asFraction) printNl!            
nil

Relevant method from kernel/ScaledDec.st:

asFraction                                                                      
    "Answer the receiver, converted to a Fraction"                              
    | num denom |                                                               
    denom := 10 raisedToInteger: scale.                                         
    num := fraction numerator * denom quo: fraction denominator.                
    gcd := num gcd: denom.                                                      
    ^Fraction numerator: num / gcd denominator: denom / gcd!

gcd isn't declared.  The rest of the methodsFor: 'coercion' seem to be
intact.  (I also see looking at the log that this appeared yesterday :)

-- 
Stephen Compall
http://scompall.nocandysw.com/blog
##smalltalk,#gnu-smalltalk on Freenode IRC

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to