On Fri, 22 Apr 2011, Žilvinas Ledas wrote:
On 2011-04-22 20:05, Michael Van Canneyt wrote:
IMO a helper is bound closer to a type than an operator.
Please explain ? To my understanding, they're on exactly the same level ?
(from a language feature point of view).
I mean, what can be more close to a type than a := operator ?
From MY point of view operator is a (special) function, that takes
(one/two/...) parameters and returns a result.
So I would agree that helper is "closer" than an operator.
I suspect it's a highly indvidual matter.
What is "higher" or "Closer", functions or operators ?
I would think functions, as they are evaluated first in an expression.
Others may use different metrics...
The only objective way, I suppose, is to treat all constructs as on the same
level.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal