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

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Aug 30 18:03:44 CEST 2012


Mark Morgan Lloyd wrote:
> 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

My absurd example wasn't absurd enough :-) Should have read

operator := (wle: WordLE): word;

begin
{$ifdef ENDIAN_LITTLE }
   Move(wle, :=, SizeOf(:=))
.

-- 
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