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