00:20:52 | * | q66 quit (Remote host closed the connection) |
00:50:56 | * | ARCADIVS joined #nimrod |
01:21:42 | NimBot | Araq/Nimrod 1865220 Araq [+0 ±4 -0]: better effects handling for callbacks |
01:21:42 | NimBot | Araq/Nimrod 676f458 Araq [+0 ±1 -0]: Merge branch 'master' of github.com:Araq/Nimrod |
02:12:42 | * | fowl quit (Ping timeout: 264 seconds) |
02:24:29 | * | fowl joined #nimrod |
02:35:12 | * | reactormonk_ joined #nimrod |
03:03:54 | * | erlnoob joined #nimrod |
03:44:45 | fowl | where is the documentation on things like expr[string] |
04:13:49 | * | OrionPK quit (Quit: Leaving) |
05:20:31 | * | Trix[a]r_za is now known as Trixar_za |
05:24:10 | * | ARCADIVS quit (Quit: WeeChat 0.3.8) |
07:58:00 | * | Trixar_za is now known as Trix[a]r_za |
08:05:53 | * | Trix[a]r_za is now known as Trixar_za |
08:12:24 | fowl | if anyone knows plz leave it for me ill check the logs |
08:12:26 | fowl | thanks |
08:12:36 | * | fowl quit (Quit: Leaving) |
08:14:14 | zahary_ | fowl, sorry, turns out I haven't documented it yet |
08:14:34 | zahary_ | be warned that we have plans to rename it to static[string] |
08:15:15 | zahary_ | otherwise it's very simple - when the compiler see a parameter like that, it will try to evaluate statically the passed argument |
08:16:50 | zahary_ | proc foo(a: expr[string]) |
08:16:50 | zahary_ | foo(callSomeOtherProcReturningString()) # becomes something like: |
08:16:50 | zahary_ | const arg = static(callSomeOth...) |
08:16:50 | zahary_ | foo(arg) |
08:18:54 | zahary_ | now, after this is done, we enter the second aspect of the feature. internally, the compiler treats procs with static params as generic procs and the compile-time value is the generic param |
08:20:28 | zahary_ | so just like a generic procs gets instantiated for each unique type they were used with, the expr[T] proc will be instantiated with each unique value |
08:26:00 | zahary_ | in my example code for the component-entity system, I was using this property to make sure that each message will get it's own ID (assigned at program start-up) |
08:28:23 | * | erlnoob quit (Ping timeout: 255 seconds) |
08:58:56 | * | Trixar_za is now known as Trix[a]r_za |
09:37:38 | * | Endy joined #nimrod |
09:49:36 | * | erlnoob joined #nimrod |
09:52:29 | * | q66 joined #nimrod |
12:15:48 | * | erlnoob quit (Ping timeout: 256 seconds) |
12:53:21 | * | erlnoob joined #nimrod |
13:22:46 | * | xcombelle joined #nimrod |
13:41:01 | erlnoob | hello, is there a curses wrapper for nimrod somewhere? |
13:43:35 | * | Boscop quit (Ping timeout: 246 seconds) |
13:44:45 | * | Boscop joined #nimrod |
13:53:45 | reactormonk_ | erlnoob, should be |
13:53:48 | * | reactormonk_ is now known as reactormonk |
13:55:09 | reactormonk | erlnoob, that's a huge-ass collection (or huge ass-collection) of macros... |
13:55:24 | erlnoob | heh |
13:56:03 | reactormonk | as you might know, c2nim doesn't deal well with macros |
14:45:19 | * | xcombelle quit (Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.) |
15:13:39 | * | xcombelle joined #nimrod |
16:12:50 | * | fowl joined #nimrod |
16:12:59 | fowl | zahary_: thanks |
16:14:09 | fowl | erlnoob: i started on it a bit ago but i doubt ill get to finishing it: https://gist.github.com/fowlmouth/88da0f8be5e92a149dcb |
16:15:30 | fowl | oh wow im 5 hours behind nimbot now :o |
16:19:41 | * | Trix[a]r_za is now known as Trixar_za |
16:44:32 | * | Trixar_za is now known as Trix[a]r_za |
16:48:33 | * | fowl quit (Quit: Leaving) |
17:32:00 | * | silven quit (Ping timeout: 264 seconds) |
17:36:10 | * | silven joined #nimrod |
18:18:20 | * | silven quit (Remote host closed the connection) |
19:00:58 | * | Endy quit (Ping timeout: 256 seconds) |
19:13:46 | * | erlnoob quit (Quit: erlnoob) |
19:24:59 | * | xcombelle quit (Read error: Connection reset by peer) |
19:35:04 | * | ARCADIVS joined #nimrod |
21:11:51 | * | Trix[a]r_za is now known as Trixar_za |
22:30:25 | * | OrionPK joined #nimrod |
23:15:06 | * | fowl joined #nimrod |
23:18:45 | * | Trixar_za is now known as Trix[a]r_za |