From: Chris C. <ca...@al...> - 2002-01-25 22:07:47
|
Andrew Sutton wrote: >>I could do with a good rule of thumb for when to declare a method >>to expect reference arguments and when pointers, though. Hmm? > > rule of thumb: if getting a null pointer would result in catastrophic > failure, use a reference (as they can't be null). Yeah, and use pointers when you want null to mean something. But that still leaves large categories of inconsistency where either will do but different programmers use different things. Chris |