[fpc-pascal] Re: Identifier not found "result"
Tomas Hajny
XHajT03 at hajny.biz
Thu Aug 30 16:50:30 CEST 2012
On Thu, August 30, 2012 15:08, Rainer Stratmann wrote:
> Am Thursday 30 August 2012 14:39:06 schrieb leledumbo:
>> Since this behavior is documented, one should read the documentation
>> first:
>> http://www.freepascal.org/docs-html/ref/refse76.html
>
> There is much documentation spread over many servers.
>
>> Anyway, how could one find that Result is used as function result
>> without
>> reading the docs?
>
> The scenario occures when someone starts freepascal as I already
> documented in
> my first E-Mail.
>
> When someone wants to compile a TurboPascal or Delphi program with
> freepascal.
> Then he already knows that result is a function result, but freepascal
> gives
> an error about this.
Identifier Result was not known/supported as function result in TP/BP,
i.e. your statement applies to Delphi only. Still, people with Delphi
background are obviously more likely to come across FPC nowadays, but
these people usually need $MODE DELPHI anyway due to many other things
they are used to and I miss to see how this one particular case improves
the overall situation for them. On the other hand, pointing out all
differences among the different modes by similar compiler messages is
fairly likely to require considerable effort.
Tomas
More information about the fpc-pascal
mailing list