On Mon, 5 Jul 2010 16:51:54 -0300
Marcos Douglas <m...@delfire.net> wrote:

> What do you mean "a function has effects is already bad"?
> A function/procedure always has effects, don't?

IMHO he means that a function should only return a value and not change the 
state of an object, a variable or any other program state at all.
This is good practice but there are obvious cases where this rule makes no 
sense, for example boolean functions, that use the return value to indicate 
success/failure, etc.

R.
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to