Changeset 1113c9e in mainline for uspace/dist/src/sysel/demos/list.sy
- Timestamp:
- 2010-06-09T19:03:24Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8eec3c8
- Parents:
- 8f80c77 (diff), c5cb943d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/list.sy
r8f80c77 r1113c9e 29 29 -- Using the List class from the library. 30 30 class ListDemo is 31 fun Main() is31 fun Main(), static is 32 32 var list : List/int; 33 33 … … 39 39 list.Append(8); 40 40 41 var n : ListNode/int;41 var e : IEnumerator/int; 42 42 43 n = list.First; 44 while n != nil do 45 Builtin.WriteLine(n.Data); 46 n = n.Next; 43 e = list.GetEnumerator(); 44 while e.MoveNext() do 45 Builtin.WriteLine(e.Data); 47 46 end 48 47 end
Note:
See TracChangeset
for help on using the changeset viewer.