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]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal