mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
lots of small changes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user