[ENH][newbie] Fraction >> printStringAsMixedNumber

Michael Maloney amaloney at earthlink.net
Wed Mar 6 06:46:52 UTC 2002


Well, all the books have said to start small, so . . .

In case anyone else finds it useful, here is a method I've added
to Fraction.

"(5/3) printStringAsMixedNumber" prints as 1(2/3).

The newbie part is: Have I followed accepted practice
as far as naming convention and putting the method in
the printing protocol?
Also, (especially) since I modified a kernal class, should I
have named it something else?

Cheers,
Mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fraction.zip
Type: application/x-zip
Size: 2252 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020305/3659dab9/fraction.bin


More information about the Squeak-dev mailing list