
29 May
2006
29 May
'06
9:35 p.m.
Maarten Kronenburg wrote:
What do you mean with "modulus version"? When the modulus is a constructor
modulus could be template parameter. In this case 1 - there is no static state (which complicates things a lot in multithreaded programs) 2 - number with different modulus are in fact distinct types 3 - if there is any kind of operation that can be performed between such distinct types, it can be safely defined in the interface, together with appropriate compile-time checking B.