File:  [CSRG BSD Unix] / 43BSDTahoe / ucb / pascal / tstpx / src / gordon.p
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.