Re: Questions about CLOS





Barry Fishman wrote:
Justin Paston-Cooper <defcon8@xxxxxxxxx> writes:

Hello. I'm trying to think of a way to implement interest rates on
bank accounts. Each time withdraw, credit or is called, I would like
it to be checked whether interest should be added to the account. Or
maybe another solution is better.


If one does direct slot accesses, I don't think there is any way of
doing it.

However, if an interest check was done as :before method of its
'balance' reader method, it seems to be sufficient.

Wouldn't this be a good application of a relational database?

(Sorry, that is the only Dilbert cartoon I remember.)

hth, kenny

ps. Go. A. Way. k

.