01:12:39 | * | tiorock joined #nim |
01:12:39 | * | tiorock quit (Changing host) |
01:12:39 | * | tiorock joined #nim |
01:12:39 | * | rockcavera quit (Killed (silver.libera.chat (Nickname regained by services))) |
01:12:39 | * | tiorock is now known as rockcavera |
02:29:09 | FromDiscord | <wizard2496> 4016009224 |
02:55:08 | * | rockcavera quit (Remote host closed the connection) |
03:09:36 | FromDiscord | <subto4inn> hi |
03:46:02 | * | SchweinDeBurg joined #nim |
04:17:46 | * | skippy8 joined #nim |
04:19:19 | * | ntat joined #nim |
04:31:15 | * | redj quit (Read error: Connection reset by peer) |
04:31:48 | * | redj joined #nim |
04:32:59 | * | cm joined #nim |
07:22:47 | * | ntat quit (Quit: leaving) |
08:08:54 | * | ntat joined #nim |
08:28:29 | * | beholders_eye joined #nim |
09:01:32 | * | andy-turner joined #nim |
09:18:04 | * | ntat quit (Quit: leaving) |
09:24:03 | * | ntat joined #nim |
09:40:06 | * | ehmry quit (Read error: Connection reset by peer) |
09:40:35 | * | ehmry joined #nim |
11:46:18 | * | ntat quit (Quit: leaving) |
12:33:12 | * | ntat joined #nim |
15:04:58 | FromDiscord | <xtrayambak> Does anyone know what the correct way to bind a struct like this is? More specifically, the fields prefixed with the underscores. I tried stropping but that doesn't work. http://media.discordapp.net/attachments/371759389889003532/1367154771009736724/image.png?ex=68138d99&is=68123c19&hm=24ca83cfbcd88a63438954100c7d81c7fe2a96dacd374c52b915b4a6edafcc24& |
15:08:55 | FromDiscord | <leorize> you can just rename the fields |
15:08:55 | FromDiscord | <leorize> as long as the ordering is correct, it will be fine |
15:36:29 | FromDiscord | <xtrayambak> In reply to @leorize "as long as the": Oh, thanks. :P |
15:37:29 | FromDiscord | <xtrayambak> Also, do you know if there's a way to make enum values with the same value (basically aliases to a pre-existing enum key) without separately declaring it? |
15:37:36 | FromDiscord | <xtrayambak> (edit) "it?" => "it with something like `const`?" |
15:42:50 | FromDiscord | <leorize> that's a C-ism, unfortunately |
15:51:24 | * | skippy8 quit (Quit: WeeChat 4.4.2) |
16:03:39 | FromDiscord | <Elegantbeef> Hey there is a way but it's ugly 😄 |
16:09:38 | FromDiscord | <Elegantbeef> Dear reader do not use this\: http://play.nim-lang.org/#pasty=oLbiDmKW |
16:26:20 | FromDiscord | <solitudesf> In reply to @Elegantbeef "Dear reader do not": day ruined |
16:36:04 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
17:34:13 | FromDiscord | <jseb> i don't understand what it does |
17:37:42 | FromDiscord | <Elegantbeef> Cause the size is limited to 1 byte you can use integers larger than 1 byte and 'alias' them |
17:37:45 | FromDiscord | <Elegantbeef> As only the last byte is used |
17:43:48 | FromDiscord | <jseb> ah i see, thank you |
18:29:49 | * | beholders_eye quit (Ping timeout: 260 seconds) |
18:40:21 | * | SchweinDeBurg joined #nim |
18:52:46 | * | ntat quit (Quit: leaving) |
18:55:05 | * | ntat joined #nim |
19:14:10 | FromDiscord | <threefour> In what situations would I use an inlined proc over a template and vice versa? |
19:15:17 | FromDiscord | <leorize> you use inlined proc 90% of the time |
19:15:55 | FromDiscord | <leorize> the 10% is when the parameter shouldn't be evaluated at call site |
19:16:19 | FromDiscord | <leorize> so say `assert(cond, "error: " & str)` |
19:16:47 | FromDiscord | <leorize> if `assert` is a proc, then `"error: " & str` would be evaluated regardless of whether `cond` turns true or false |
19:17:08 | FromDiscord | <leorize> so you ends up paying for string concatenation |
19:17:52 | FromDiscord | <threefour> Ah I see |
19:18:31 | FromDiscord | <leorize> a template would substitute with the input, so `assert` -\> `if cond: raise newException(AssertDefect, "error: " & str)` |
19:18:42 | FromDiscord | <leorize> and now you don't pay for string concat until the cond hits |
19:18:54 | FromDiscord | <leorize> this is a blessing and a curse |
19:20:20 | FromDiscord | <leorize> say you have `doFancyThingWith(a)`, and the body is `a.foo = c; a.bar = d` |
19:20:43 | FromDiscord | <leorize> then if you call `doFancyThingWith(callFn())`, it'd turn into `callFn().foo = c; callFn().bar = d` |
19:20:56 | FromDiscord | <leorize> so you ends up evaluating `callFn()` twice |
19:26:16 | FromDiscord | <threefour> That's helpful, thanks |
19:42:37 | * | ntat quit (Quit: leaving) |
20:35:22 | * | andy-turner quit (Quit: Leaving) |
21:02:09 | * | beholders_eye joined #nim |
21:42:04 | * | ehmry quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
21:44:38 | * | ehmry joined #nim |
21:44:39 | * | skippy8 joined #nim |
21:48:19 | * | beholders_eye quit (Ping timeout: 252 seconds) |
22:13:36 | * | oprypin quit (Quit: Bye) |
22:13:46 | * | oprypin joined #nim |
23:00:01 | * | marcus quit (Remote host closed the connection) |
23:00:43 | * | marcus joined #nim |
23:55:36 | * | skippy8 quit (Quit: WeeChat 4.4.2) |