Guest User

Untitled

a guest
May 10th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 1.01 KB | None | 0 0
  1. type Instr = ref object of RootObj
  2. type OneOpInstr[T] = ref object of Instr
  3.     op*: T
  4.  
  5. proc newOneOpInstr[T](op: T): ref OneOpInstr[T] =
  6.     new(result)
  7.     result.op = op
  8.  
  9. proc x(): ref Instr =
  10.     result = newOneOpInstr(5)
  11.  
  12.  
  13. $ nim c --parallelBuild:1 xx.nim
  14. config/nim.cfg(53, 3) Hint: added path: '/home/dalar/.babel/pkgs/' [Path]
  15. config/nim.cfg(54, 3) Hint: added path: '/home/dalar/.nimble/pkgs/' [Path]
  16. Hint: used config file '/home/dalar/repos/Nim/config/nim.cfg' [Conf]
  17. Hint: system [Processing]
  18. Hint: xx [Processing]
  19. xx.nim(10, 6) Hint: 'xx.x()' is declared but not used [XDeclaredButNotUsed]
  20. gcc -c  -w  -I/home/dalar/repos/Nim/lib -o /home/dalar/repos/nimiona/nimcache/xx.o /home/dalar/repos/nimiona/nimcache/xx.c
  21. /home/dalar/repos/nimiona/nimcache/xx.c: In function ‘x_90035’:
  22. /home/dalar/repos/nimiona/nimcache/xx.c:123:16: error: request for member ‘Sup’ in something not a structure or union
  23.   result = &LOC1->Sup;
  24.                 ^
  25. Error: execution of an external program failed
Advertisement
Add Comment
Please, Sign In to add comment