Guest User

Untitled

a guest
Nov 22nd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var
  2. thr: array[0..4, system.TThread[void]]
  3.  
  4. proc threadFunc(void) {.thread.} =
  5. echo("hi")
  6.  
  7. for i in 0..high(thr):
  8. createThread(thr[i], threadFunc, void)
  9. joinThreads(thr)
  10.  
  11. threads.nim(8, 23) Error: instantiate 'threadFunc' explicitely
Advertisement
Add Comment
Please, Sign In to add comment