[fpc-pascal] methods of an object to create others objects
reimgrab at web.de
Tue Jul 6 02:07:53 CEST 2010
On Mon, 5 Jul 2010 16:51:54 -0300
Marcos Douglas <md at 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.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Q: What is the most annoying thing in e-mail?
More information about the fpc-pascal