lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -34,5 +34,5 @@ proc main =
|
|||
sync()
|
||||
for ix in 1..3: channels[ix].close()
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ proc main =
|
|||
sync()
|
||||
for ix in 1..3: channels[ix].close()
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -35,5 +35,5 @@ proc main =
|
|||
sync()
|
||||
for ix in 1..3: channels[ix].close()
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -36,6 +36,6 @@ proc update =
|
|||
for i in 0 .. people.high:
|
||||
spawn people[i].greet()
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
setup()
|
||||
update()
|
||||
|
|
|
|||
|
|
@ -59,5 +59,5 @@ proc maino =
|
|||
|
||||
maino() # Doesn't work outside a proc
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -48,6 +48,6 @@ proc update =
|
|||
|
||||
# ---
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
setup()
|
||||
update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue