loom
1int x;
2
3sys.print("x is " + sys.typeof(x));
4
5use "scriptc-ex07.sc0" ("scriptc0") as type Prime p1;
6
7sys.print("p1 is " + sys.typeof(p1) + ". Content: " + sys.tostring(p1));
8
9Prime p;
10
11sys.print(p.check_prime(3));
12
13sys.print(p.start);
14p.start++;
15sys.print(p.start);
16--p.start;
17sys.print(p.start);
18
19p.start += 10;
20sys.print(p.start);
21
22p.limit = p.start + 50;
23
24sys.print("p is " + sys.typeof(p) + ". Content: " + sys.tostring(p));
25
26p.go();
27
28