On 04/04/2013 10:54 PM, Lukasz Sokol wrote:
On 02/04/2013 14:30, Sven Barth wrote:
<snip>
Thank you.
Regards,
Sven
So far, not many (i.e. none) comments in favor...
L.
Well, if you are looking for votes, I certainly would NEVER use it.
(Which is not quite the same as being opposed to someone doing it, as
long as I can ignore it). To me, the construct is far, far more ugly
than anything it solves.
More importantly, the c style operators are vaguely tollerable becasue
they are actually operators (though I still never use them). Doing this
with a function seems horrible to me.
Wouldn't the Pascal way of doing this be something like
procedure minproc(var target: integer; array of integer)
which would then take the minimum of target and all the other values,
and set the result back to target. (It could probably be a function and
return the min value as well, for when that would be more convenient.)
ps Hope I have kept track of the context of the thread, it has been a
long one ...
cheers,
John Sunderland
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal