lots of small changes

This commit is contained in:
Arne Döring
2018-12-05 19:03:01 +01:00
committed by Araq
parent c0c35839cc
commit a5ecbf823f
85 changed files with 180 additions and 110 deletions

View File

@@ -34,5 +34,5 @@ proc main =
sync()
for ix in 1..3: channels[ix].close()
when isMainModule:
when true:
main()

View File

@@ -28,5 +28,5 @@ proc main =
sync()
for ix in 1..3: channels[ix].close()
when isMainModule:
when true:
main()

View File

@@ -35,5 +35,5 @@ proc main =
sync()
for ix in 1..3: channels[ix].close()
when isMainModule:
when true:
main()

View File

@@ -36,6 +36,6 @@ proc update =
for i in 0 .. people.high:
spawn people[i].greet()
when isMainModule:
when true:
setup()
update()

View File

@@ -59,5 +59,5 @@ proc maino =
maino() # Doesn't work outside a proc
when isMainModule:
when true:
main()

View File

@@ -48,6 +48,6 @@ proc update =
# ---
when isMainModule:
when true:
setup()
update()