On Fri, 16 Jun 2000, Christopher Browne wrote:
> The main merit of C++ here is that you'd be able to define overloaded
> operations for +, -, *, /, which allow you to at least _consider_ having:
> total_money = v1_money + v2_money;
> I'm not sure it generalizes much better than that...
>
> Guile would probably cope with this better still; I expect we could
> build GOOPS classes and structures that would work out _quite_ well.
>
> (set! total (money+ value1 value2 value3 value4))
I think that the advantage of C++ (or guile) is in the OO aspect of having
methods to add, print, etc. and otherwise manipulate the "money" without
having to worry about the currency characteristics.
total_money = v1_money + v2_money;
vs
total(total_money , v1_money , v2_money);
is just notational.
The key is that the call works the same for dollars or lira or shares of XYZ
corp.
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]