Re: pure procedure
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Fri, 22 Apr 2011 11:56:01 -0700
Well, yes, but that's not the REAL gain, which is how much they
can speed up debugging in large programs. If you see a PURE
procedure, (a) you can be certain that it isn't going to have a
strange (legal or illegal) side-effect on some other data and
(b) you can put extra calls in your diagnostic statements without
affecting the results.
Of course, lying to the compiler and tricking it into believing your
lies, as the OP was suggesting, completely defeats that object.
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
- Prev by Date: Re: pure procedure
- Next by Date: Re: Using Integers and Bit Manipulation
- Previous by thread: Re: pure procedure
- Next by thread: Re: pure procedure