In comp.lang.pascal.borland message <f756e1f1-c90f-4714-84ff-f9975c2a87f
Post by Patrick D. RockwellIs it considered bad form to put write statements in
functions?
Ideally, a function will have no side-effects, usually.
So it is fine to have a function whose chief purpose is to write, and it
is fine to have a function which calculates and returns an answer
without writing anything; but a mixture is often best avoided.
Similarly for procedures.
--
(c) John Stockton, nr London UK. E-addr via Homepage. Turnpike v6.05 MIME.
<http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ.