|AN OBJECT-ORIENTED SPREADSHEET FRONT-END
Making spreadsheets safer
object company attributes incomings : real outgoings : real profit : real where profit[t] = incomings[t] - outgoings[t].
In the above piece of MM code, we are describing the
attributes and behaviour of a simple
company object. The behaviour says that the profits at
t are always equal to the incomings
minus the outgoings at that time.
It is easy to translate this to a spreadsheet. We could allocate profit to column A, incomings to column B and outgoings to column C. Successive time points can be allocated to successive rows. Then the appropriate formula can be loaded into each cell. In essence, that's how MM works.