<< 19-12-2015 >>

00:17:00*jakesyl quit (Ping timeout: 260 seconds)
00:29:55*jakesyl joined #nim
00:31:14*gokr quit (Ping timeout: 272 seconds)
00:38:06*lokulin quit (Ping timeout: 240 seconds)
00:53:21*Trustable quit (Quit: Leaving)
00:53:50*Demon_Fox quit (Quit: Leaving)
00:54:52*lokulin joined #nim
00:54:59*Demon_Fox joined #nim
02:10:59cryzedhttp://gameprogrammingpatterns.com/component.html Has anyone any suggestions how I would best implement this system in Nim? I attempted something like this: https://gist.github.com/cryzed/745d0fc5edea9b8158f6 & https://gist.github.com/cryzed/0bb2a94ed5fe21d53822, but this doesn't quite work because Nim doesn't know about the update procs defined for the custom types in game.nim at compile time (or so it seems). Also it feels kind of wrong to
02:10:59cryzeddo this? Like I am completely missing something and could do way better with Nim. Currently I'm just subclassing Input/Physics/GraphicsComponent to be able to differentiate between the different update implementations
02:14:34*BitPuffin|osx joined #nim
02:15:35*[CBR]Unspoken quit (Ping timeout: 255 seconds)
02:29:46*[CBR]Unspoken joined #nim
02:52:58*lazypenguin quit (Ping timeout: 250 seconds)
03:06:37*lazypenguin joined #nim
03:14:38*Demos joined #nim
03:44:58*brson joined #nim
03:45:31*brson quit (Client Quit)
04:00:37*vendethiel joined #nim
05:11:36*vendethiel quit (Ping timeout: 272 seconds)
05:18:15*darkf joined #nim
06:50:29*Demos quit (Read error: Connection reset by peer)
07:40:04*yglukhov joined #nim
08:01:37*Demon_Fox quit (Quit: Leaving)
08:09:52*desophos quit (Read error: Connection reset by peer)
08:10:31*yglukhov quit (Remote host closed the connection)
08:18:50*xet7 joined #nim
08:26:11*pregressive joined #nim
08:28:56*pregressive quit (Read error: Connection reset by peer)
08:29:07*pregressive joined #nim
08:50:09*kerze joined #nim
08:50:25*kerze is now known as smodo
08:59:59*yglukhov joined #nim
09:41:55*xet7 quit (Ping timeout: 240 seconds)
09:53:56M-maxqq: if I have a generic function, say:
09:53:56M-maxparse[TargetType](value: string, default: TargetType)
09:53:57M-maxIs there any way to call different functions depending on the TargetType?
09:53:58M-maxI don't think type(T) helps as that's a runtime only thing? I basically want variant types, but with generics iyswim
09:54:18*xet7 joined #nim
10:02:31M-maxOnly thing i can see is to rewrite it to parse(value: string, default: int) and have that method call the templated one parsing in a value->TargetType parsing proc
10:08:51*Trustable joined #nim
10:13:23*yglukhov quit (Remote host closed the connection)
10:22:10*yglukhov joined #nim
10:25:35*BitPuffin|osx quit (Ping timeout: 246 seconds)
10:37:06*xet7 quit (Ping timeout: 256 seconds)
10:42:30*Matthias247 joined #nim
10:52:26*xet7 joined #nim
11:12:40*Matthias247 quit (Read error: Connection reset by peer)
11:40:05*xet7 quit (Ping timeout: 260 seconds)
12:09:34*pregressive quit (Remote host closed the connection)
12:09:48*pregressive joined #nim
12:33:42*smodo quit (Remote host closed the connection)
12:39:38*Demon_Fox joined #nim
12:49:22*kerze joined #nim
12:49:29*kerze is now known as smodo
12:51:53*cyraxjoe_ quit (Ping timeout: 265 seconds)
12:57:53*vendethiel joined #nim
12:59:52*Ven joined #nim
13:00:23*Ven quit (Client Quit)
13:22:04*krux02 joined #nim
13:23:29krux02lib/nim/core/macros.nim(15, 34) Error: cannot open '../doc/astspec.txt'
13:23:37krux02what can I do?
13:34:25*boopisaway is now known as boop
13:37:23*xiongxin joined #nim
13:51:21*xiongxin quit (Quit: Page closed)
14:14:46*smodo quit (Remote host closed the connection)
14:20:45cryzedregarding my problem from yesterday, I had to use dynamic binding
14:20:50cryzedeh dynamic dispatch
15:00:40*yglukhov quit (Read error: Connection reset by peer)
15:01:13*yglukhov joined #nim
15:14:10*vendethiel quit (Ping timeout: 260 seconds)
15:21:06*sdw joined #nim
15:24:39*krux02 quit (Ping timeout: 252 seconds)
15:33:41*vendethiel joined #nim
15:48:26*sdw left #nim (#nim)
15:55:34*gokr joined #nim
16:19:05*Demon_Fox quit (Quit: Leaving)
16:23:38*matkuki joined #nim
16:38:26*matkuki quit (Ping timeout: 240 seconds)
17:04:22*BitPuffin|osx joined #nim
17:06:25*Matthias247 joined #nim
17:27:20*matkuki joined #nim
17:30:13*themagician_c joined #nim
17:32:25*themagician quit (Ping timeout: 272 seconds)
17:33:00*Demos joined #nim
17:33:29*niv quit (Excess Flood)
17:33:40*niv_ joined #nim
17:34:03*niv_ is now known as niv
17:35:56*pregressive quit ()
17:49:25*yglukhov quit (Read error: Connection reset by peer)
17:50:01*yglukhov joined #nim
17:51:23*matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 43.0.1/20151216175450])
17:53:00*vendethiel quit (Ping timeout: 265 seconds)
18:14:08*Ven joined #nim
18:28:07*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:31:27*Ven joined #nim
18:43:00*jakesyl quit (Ping timeout: 260 seconds)
18:45:27*vendethiel joined #nim
18:47:50*BitPuffin|osx quit (Remote host closed the connection)
18:56:05*jakesyl joined #nim
18:57:25*yglukhov quit (Remote host closed the connection)
19:01:31*krux02 joined #nim
19:09:28*BitPuffin|osx joined #nim
19:12:47*onionhammer quit (Read error: Connection reset by peer)
19:13:17*onionhammer joined #nim
19:28:24*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:28:37*desophos joined #nim
19:53:59*juanfra quit (Quit: juanfra)
19:57:56*yglukhov joined #nim
20:03:26*yglukhov quit (Remote host closed the connection)
20:08:05*yglukhov joined #nim
20:27:58*juanfra joined #nim
20:42:18*darkf quit (Quit: Leaving)
20:48:31*irrequietus joined #nim
20:59:28*Ven joined #nim
21:32:43*pjc joined #nim
21:37:00*pjc quit (Ping timeout: 252 seconds)
21:59:51*yglukhov_ joined #nim
21:59:51*yglukhov quit (Read error: Connection reset by peer)
22:04:01*desophos_ joined #nim
22:04:55*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:07:22*yglukhov_ quit (Remote host closed the connection)
22:08:12*desophos quit (Ping timeout: 265 seconds)
22:46:57*irrequietus quit ()
22:48:03*vikaton quit (Quit: Connection closed for inactivity)
22:49:19*desophos_ is now known as desophos
23:08:06*Matthias247 quit (Read error: Connection reset by peer)
23:09:52*boop is now known as boopisaway
23:30:36cryzedSomehow I have problems with using varargs: https://gist.github.com/cryzed/b56d2c389621be57771b
23:30:54cryzedhttps://gist.github.com/cryzed/7b1628460c3a8fd45cee the full source
23:32:12cryzedshouldn't the arguments I pass to newGameObject automatically turn to varargs?
23:36:48cryzedah I had to turn the arguments manually into an array/sequence. I suppose it's only converted to one when there's another leading fixed argument
23:38:53cryzedOk, then I think I have a somewhat good component system finally