diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 08:55:30 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-29 08:55:30 +0100 |
commit | 6a3288a60e78c9b17f2640fff20ab94969914974 (patch) | |
tree | 5946b02ce048d67c70f99b8636c6afcd5c082cd4 /lib/deprecated/pure | |
parent | 70ea45cdbaa9d26a7196ab2718f60c9ca77e2d12 (diff) | |
download | Nim-6a3288a60e78c9b17f2640fff20ab94969914974.tar.gz |
more replacements for the deprecated '<'
Diffstat (limited to 'lib/deprecated/pure')
-rw-r--r-- | lib/deprecated/pure/actors.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/deprecated/pure/actors.nim b/lib/deprecated/pure/actors.nim index 36bd41e9e..be01fb3f6 100644 --- a/lib/deprecated/pure/actors.nim +++ b/lib/deprecated/pure/actors.nim @@ -18,7 +18,7 @@ ## var ## a: ActorPool[int, void] ## createActorPool(a) -## for i in 0 .. < 300: +## for i in 0 ..< 300: ## a.spawn(i, proc (x: int) {.thread.} = echo x) ## a.join() ## @@ -133,7 +133,7 @@ proc createActorPool*[In, Out](a: var ActorPool[In, Out], poolSize = 4) = newSeq(a.actors, poolSize) when Out isnot void: open(a.outputs) - for i in 0 .. < a.actors.len: + for i in 0 ..< a.actors.len: a.actors[i] = spawn(poolWorker[In, Out]) proc sync*[In, Out](a: var ActorPool[In, Out], polling=50) = @@ -227,7 +227,7 @@ when not defined(testing) and isMainModule: var a: ActorPool[int, void] createActorPool(a) - for i in 0 .. < 300: + for i in 0 ..< 300: a.spawn(i, proc (x: int) {.thread.} = echo x) when false: |