|
|
BSD 4.3tahoe
program ffunc( output );
type
comparisons = ( less , equal , greater );
function insert(
function comparitor( this , that : integer ) : comparisons;
here , there : integer ) : boolean;
function equality : boolean;
begin
if comparitor( here , there ) = equal then begin
equality := true
end else begin
equality := false
end
end;
begin
insert := equality;
end;
function compare( this , that : integer ) : comparisons;
begin
if this < that then compare := less
else if this = that then compare := equal
else compare := greater
end;
begin
writeln( insert( compare , 17 , 23 ) );
end.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.