Changes in uspace/dist/src/sysel/demos/property.sy [38aaacc2:a95310e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/property.sy
r38aaacc2 ra95310e 33 33 prop X : int is 34 34 get is 35 Builtin.Write ("Getting value of X which is");35 Builtin.WriteLine("Getting value of X which is"); 36 36 Builtin.WriteLine(x); 37 37 return x; … … 39 39 40 40 set value is 41 Builtin.Write ("Setting value of X to");41 Builtin.WriteLine("Setting value of X to"); 42 42 Builtin.WriteLine(value); 43 43 x = value; … … 51 51 prop self[index : int] : int is 52 52 get is 53 Builtin.Write ("Getting property with index ");54 Builtin.Write (index);55 Builtin.Write (" which is");53 Builtin.WriteLine("Getting property with index "); 54 Builtin.WriteLine(index); 55 Builtin.WriteLine("which is"); 56 56 Builtin.WriteLine(iprops[index]); 57 57 … … 60 60 61 61 set value is 62 Builtin.Write ("Setting property with index ");63 Builtin.Write (index);64 Builtin.Write (" to");62 Builtin.WriteLine("Setting property with index "); 63 Builtin.WriteLine(index); 64 Builtin.WriteLine("to"); 65 65 Builtin.WriteLine(value); 66 66 … … 110 110 i = a.X; 111 111 112 Builtin.Write ("Main(): Got ");112 Builtin.WriteLine("Main(): Got "); 113 113 Builtin.WriteLine(i); 114 114 … … 121 121 i = a[1]; 122 122 123 Builtin.Write ("Main(): Got ");123 Builtin.WriteLine("Main(): Got "); 124 124 Builtin.WriteLine(i); 125 125
Note:
See TracChangeset
for help on using the changeset viewer.