[fpc-devel] Syntax problem with function result
jepjoh2 at kom.aau.dk
Wed Jul 28 17:36:16 CEST 2010
Florian Klaempfl skrev:
> Am 28.07.2010 15:10, schrieb Hans-Peter Diettrich:
>> Florian Klaempfl schrieb:
>>>> IMO we should have at least an option, that a function name can *not* be
>>>> used for the function result any more, for the result we have the Result
>>>> variable. Then we can safely distinguish between function calls (by
>>>> function name) and results (by "Result"). If ever required, local
>>>> functions still can refer to the result of some enclusing function, by
>>>> e.g. qualified <function_name>.Result.
>>> I think for this purpose a hint is enough.
>> Can it be implemented ASAP, or is a feature request required?
> If none of the other developers refuse till tomorrow, I'll apply the
> patch of Jeppe.
> Anybody else opinions if a hint would be better than the mode switch?
> fpc-devel maillist - fpc-devel at lists.freepascal.org
I wouldn't accept it. It doesn't work in mode fpc. I added it here
instead of the bugtracker to spark some debate in the direction
I don't think there'll be much use of it at all either, if it remains
disabled by default :)
More information about the fpc-devel