Alexander Klenin wrote:

Code bloat/duplication is much more serious.
It is usually not just SomeReallyLongVariableNameY, but something like:
SomeFunctionReturningObject(param1, param2).PointArrayField[i] +=
FunctionReturningPointOffset(param);
Try rewriting that without "+=".

Again, we are back at lazy typing. Somehow typing the realy long valiable name is not a problem, but declaring an extra variable is.
(and with lazarus even that isn't needed)

What is wrong with :

MyObj := SomeFunctionReturningObject(param1, param2);
MyObj.PointArrayField[i] := MyObj.PointArrayField[i] +
  FunctionReturningPointOffset(param)


Why are you still using pascal ?

Marc

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to