[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Fractions
From: |
J Pfersich |
Subject: |
[Help-smalltalk] Fractions |
Date: |
Mon, 15 Jan 2007 00:46:35 -0700 |
This doesn't make sense:
st> 123/3 asFraction !
41
but if I do this, it works out OK:
st> ((123/3) asFraction) printNl !
41/1
Fraction new "<0x103e0d0>"
and this:
st> 123/3 identityHash !
41
st> (123/3) identityHash !
41
but if I do this, I get what I'm looking for (I think):
st> ((123/3) asFraction) identityHash !
27294
But isn't this just giving me the object index? (that can be reused?)
- [Help-smalltalk] Fractions,
J Pfersich <=