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;
begin
{$ifdef ENDIAN_LITTLE }
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]
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal