Boost logo

Boost :

From: Terje Slettebo (tslettebo_at_[hidden])
Date: 2002-10-24 03:07:31

>From: "Maciej Sobczak" <maciej_at_[hidden]>

>The mathematics is the same in ancient Rome, in Warsaw and in Tokyo,
>even if the numbers *look* differently.

>I think that the representation of the class should be separate from the
>class. You can achieve this with either separate translator functions
>(see the reply from Volodya) or by wrapping integer into some class:

>int i = ...;
>cout << MyNumber(i);
>MyNumber n;
>cin >> n;
>int i = n.get();

How is MyNumber different from a Roman number class? It seems to me that it
does indeed represent Roman numbers.

>Funny thing - I've just went through this discussion with people on my
>univ. The Roman number class was a homework, probably well-intentioned
>but IMHO very misguided.



One of the main causes of the fall of the Roman Empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs. - Robert Firth

Boost list run by bdawes at, gregod at, cpdaniel at, john at