[fpc-pascal] Re: Identifier not found "result"

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Aug 30 17:42:51 CEST 2012

Rainer Stratmann wrote:

> TP for DOS at 
> least supports a function result (as I remember) thus it is not Delphi only 
> as you mention.

It supports a function result, but it doesn't IIRC treat 'result' as a 
special identifier. Delphi /has/ to have 'result', since otherwise 
redefining standard operators would result in something like

operator := (wle: WordLE): word;

   Move(wle, result, SizeOf(:=))

which is clearly absurd :-)

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list