File:  [CSRG BSD Unix] / 43BSD / contrib / icon / test / std34.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("a := [1,2,3,4,5,6,7,8] ----> ",image(a := [1,2,3,4,5,6,7,8]) | "none")
   write("a1 := a[2:4] ----> ",image(a1 := a[2:4]) | "none")
   write("a2 := a[7:2] ----> ",image(a2 := a[7:2]) | "none")
   write("a3 := a[2+:3] ----> ",image(a3 := a[2+:3]) | "none")
   write("a4 := a[-1-:3] ----> ",image(a4 := a[-1-:3]) | "none")
   write("a1[1] ----> ",image(a1[1]) | "none")
   write("a2[1] ----> ",image(a2[1]) | "none")
   write("a3[1] ----> ",image(a3[1]) | "none")
   write("a4[1] ----> ",image(a4[1]) | "none")
   write("a4[1] := a ----> ",image(a4[1] := a) | "none")
   write("a[1:3] := a ----> ",image(a[1:3] := a) | "none")
end

unix.superglobalmegacorp.com

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