On Wed, 16 Dec 2020, Blaise--- via fpc-devel wrote:
On 16.12.2020 12:24, Michael Van Canneyt via fpc-devel wrote:
To be correct: Result is not the name of the result value, it is an alias.
But, conceptually, I would rather look at the function name resolving to the
return value as a backward-compatible alias, and say that Result is the true
(default) name for the return value. Such notion fits modern usage.
So, let's say that:
The function result can be assigned using 2 identifiers:
* The Result identifier.
* The name of the function.
I do agree with your point that it should be allowed to explicitly name
Result as Result for operators, even when the Result identifier is allowed.
The score thus far: 1:1.
Well, it's not exactly a contest.
We can of course consider changing the current behaviour in the future, as far
as I
know there is no urgency in this ATM. There are other, more urgent tasks...
Michael.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel