|
From: <HBB...@t-...> - 2007-11-26 23:41:51
|
Allin Cottrell wrote: > Hans has put me right: I had thought of TERM_TABLE entries as > constants but I was wrong. However, it seems to me easier to add > a function pointer at the end of the table: that way no *.trm code > needs to be touched unless the term wants to offer a scale factor. Same difference. Adding a variable at the end of the struct has the same net effect, and the benefit of being less risky. An unsupported variable automatically defaults to zero, but an unsupported function defaults to an invalid function pointer, which is generally unsafe to use. |