mirror of
https://github.com/irmen/prog8.git
synced 2026-04-19 20:16:51 +00:00
d4e83b28bb
added sorting example
17 lines
289 B
Lua
17 lines
289 B
Lua
%import textio
|
|
|
|
main {
|
|
struct Node {
|
|
^^ubyte s
|
|
}
|
|
|
|
sub start() {
|
|
^^Node[] nodes = [ Node(), Node(), Node() ]
|
|
^^Node n1 = Node()
|
|
txt.print_uw(n1)
|
|
txt.print_uw(nodes[0])
|
|
txt.print_uw(nodes[1])
|
|
txt.print_uw(nodes[2])
|
|
}
|
|
}
|