File:  [Research Unix] / researchv10dc / cmd / icon / tests / stand / expr58.out
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

1 | 2 | 3 ----> 1
|(1 to 10) ----> 1
||(1 to 10) ----> 1
|||(1 to 10) ----> 1
||||(1 to 10) ----> 1
|||||(1 to 10) ----> 1
|||||||(1 to 10) ----> 1
2 \ 2 ----> 2
while 1 do break ----> &null
while 1 do break "hello" ----> "hello"
while break ----> &null
case 1 of {2:3; "1":4; 1: 4 to 10; default: "whoa"} ----> 4
not 1 ----> none
not \&null ----> &null
repeat break ----> &null
until 1 do 2 ----> none
if 1 then 2 else 3 ----> 2
1
2
3
4
5
6
7
8
9
10
every write(if 1 then 1 to 10 else 5) ----> none
10
9
8
7
6
5
4
3
2
1
every write(if 1 = 0 then 1 to 10 else 10 to 1 by -1) ----> none
if 1 then 2 ----> 2
if 1 = 0 then 2 ----> none
Run-time error 101 at line 30 in expr58.icn
integer expected
offending value: "a"

unix.superglobalmegacorp.com

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