On Thu, Apr 7, 2011 at 11:19 AM, Robert Klemme
<shortcutter / googlemail.com> wrote:
>
> I also doubt whether it is a good idea to allow for subclassing of an
> integer like class.  ¨Βθαυσγασε δο ωοθαφε ιξ νιξδ χθιγχουμ> make this necessary?

Complex numbers come to mind:

3 - 2j [+|*] 45^(j * e * 44.

Very different semantics for addition and multiplication of those than
for your normal space numbers, including conversion from Cartesian to
polar form. Bit of a textbook case for the benefits of inheritance and
function overloading. :P

It'd be better to have those be a sub-class of Float, though.

-- 
Phillip Gawlowski

Though the folk I have met,
(Ah, how soon!) they forget
When I've moved on to some other place,
There may be one or two,
When I've played and passed through,
Who'll remember my song or my face.