File:  [CSRG BSD Unix] / 43BSD / contrib / icon / test / xpx03.icn
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

record array(a,b,c,d,e,f,g)

procedure dummy(u,v,x,y,z)
   suspend u | v
   return x
end

procedure main()
   write("every write(\"...\"(1,10,2)) ----> ",image(every write("..."(1,10,2))) | "none")
   write("every write(\"image\"(write)) ----> ",image(every write("image"(write))) | "none")
   write("\":\"(\"abcdef\",3,5) ----> ",image(":"("abcdef",3,5)) | "none")
   write("\"[]\"(&lcase,3) ----> ",image("[]"(&lcase,3)) | "none")
   write("image(proc(\"^\",1)) ----> ",image(image(proc("^",1))) | "none")
   write("image(proc(\"^\",2)) ----> ",image(image(proc("^",2))) | "none")
   write("proc(\"+\",2)(3,4) ----> ",image(proc("+",2)(3,4)) | "none")
   write("proc(proc)(\"write\") ----> ",image(proc(proc)("write")) | "none")
   write("proc(\"+\") ----> ",image(proc("+")) | "none")
   write("\"|\"(1,2) ----> ",image("|"(1,2)) | "none")
end

unix.superglobalmegacorp.com

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