Guest User

Untitled

a guest
Nov 22nd, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var
  2. thr: array[0..4, TThread[void]]
  3.  
  4. proc threadFunc() {.thread.} =
  5. echo("hi ")
  6.  
  7. for i in 0..high(thr):
  8. createThread(thr[i], threadFunc, void)
  9. joinThreads(thr)
  10.  
  11. # minfail.nim(8, 14) Error: type mismatch: got (TThread[void], proc (){.thread.}, typedesc[empty])
  12. # but expected one of:
  13. # system.createThread(t: var TThread[TArg], tp: proc (TArg){.thread.}, param: TArg)
Advertisement
Add Comment
Please, Sign In to add comment