00:01:59 | * | tmm1 quit (Ping timeout: 240 seconds) |
00:05:38 | * | tmm1 joined #nim |
00:17:18 | * | Sahnvour quit (Read error: Connection reset by peer) |
00:20:23 | * | saml_ joined #nim |
00:29:18 | * | jaco60 quit (Ping timeout: 246 seconds) |
00:57:51 | * | jakesyl joined #nim |
01:13:17 | * | chemist69 joined #nim |
01:16:07 | * | chemist69_ quit (Ping timeout: 244 seconds) |
01:39:40 | * | boydgreenfield quit (Quit: boydgreenfield) |
01:46:18 | * | jakesyl quit (Ping timeout: 246 seconds) |
01:53:17 | cncl | do inc and dec on ordinal enums wrap? |
02:00:39 | tmm1 | not sure, try it? |
02:02:56 | cncl | OverflowError |
02:03:19 | cncl | guess that makes sense :) |
02:07:17 | cncl | can inc be overwritten with a new definition? |
02:07:22 | cncl | for my enum type |
02:09:15 | cncl | yes |
02:15:28 | * | saml_ quit (Ping timeout: 272 seconds) |
02:23:24 | * | vendethiel joined #nim |
03:05:29 | * | darkf joined #nim |
03:28:20 | * | vendethiel quit (Ping timeout: 265 seconds) |
03:34:41 | cncl | how can i temporarily disable the XDeclaredButNotUsed warning when importing a module? |
03:34:48 | cncl | i'm assuming there is a pragma |
03:35:33 | * | Demon_Fox joined #nim |
03:36:37 | * | nande joined #nim |
04:09:28 | * | nande quit (Ping timeout: 272 seconds) |
04:10:51 | * | nande joined #nim |
04:21:58 | Varriount | cncl: You'll find that you 'overwrite' procedures quite a bit in Nim. |
04:22:05 | Varriount | It's mainly overloading, of a sort. |
04:22:15 | cncl | yeah i was just declaring it wrong |
04:28:17 | * | Jesin quit (Quit: Leaving) |
04:49:04 | * | vegansk quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше)) |
04:54:27 | * | Jesin joined #nim |
05:02:29 | * | tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
05:31:27 | * | Jesin quit (Quit: Leaving) |
05:32:38 | * | Jehan_ joined #nim |
05:32:43 | * | Jehan_ quit (Client Quit) |
05:58:46 | * | bjz joined #nim |
06:04:00 | * | bjz quit (Ping timeout: 264 seconds) |
06:04:28 | * | vega_nsk joined #nim |
06:11:05 | * | xificurC quit (Read error: Connection reset by peer) |
06:11:22 | * | xificurC joined #nim |
06:24:06 | * | bjz joined #nim |
06:31:39 | * | nande quit (Read error: Connection reset by peer) |
06:39:11 | * | Ven joined #nim |
07:06:42 | * | Arrrr joined #nim |
07:08:57 | * | xet7 quit (Quit: Leaving) |
07:39:20 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:39:30 | * | enamex joined #nim |
07:41:43 | * | Ven joined #nim |
07:59:31 | * | sdw quit (Ping timeout: 252 seconds) |
08:06:56 | * | X67r joined #nim |
08:11:12 | * | coffeepot joined #nim |
08:25:48 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
08:40:44 | * | Trustable joined #nim |
08:45:00 | * | jaco60 joined #nim |
08:51:48 | * | Varriount quit (Read error: Connection reset by peer) |
08:52:17 | * | Varriount joined #nim |
09:04:20 | * | shodan45 quit (Quit: Konversation terminated!) |
09:23:33 | * | Sahnvour joined #nim |
09:26:04 | * | elrood joined #nim |
09:33:45 | * | zielmicha quit (Ping timeout: 252 seconds) |
09:34:23 | * | NhanH quit (Ping timeout: 264 seconds) |
09:34:24 | * | CARAM__ quit (Read error: Connection reset by peer) |
09:34:24 | * | n1ftyn8_ quit (Read error: Connection reset by peer) |
09:36:24 | * | pmbauer quit (Ping timeout: 268 seconds) |
09:49:25 | * | Demon_Fox quit (Quit: Leaving) |
09:56:15 | * | CARAM__ joined #nim |
09:56:25 | * | n1ftyn8_ joined #nim |
09:57:08 | * | CARAM__ quit (Remote host closed the connection) |
09:57:08 | * | n1ftyn8_ quit (Remote host closed the connection) |
10:01:32 | * | NhanH joined #nim |
10:01:37 | * | Ven joined #nim |
10:02:58 | * | pmbauer joined #nim |
10:06:26 | * | n1ftyn8_ joined #nim |
10:09:52 | * | zielmicha joined #nim |
10:10:12 | * | zielmicha is now known as Guest4360 |
10:13:34 | * | CARAM__ joined #nim |
10:33:13 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:06:06 | * | joelmo joined #nim |
11:10:09 | * | jaco60 quit (Ping timeout: 246 seconds) |
11:29:36 | * | Ven joined #nim |
11:30:13 | * | polde quit (Ping timeout: 250 seconds) |
11:58:12 | * | polde joined #nim |
12:09:00 | * | Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png) |
12:12:58 | * | boopsiesisaway is now known as boopsies |
12:21:00 | * | xet7 joined #nim |
12:23:43 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:37:47 | * | Ven joined #nim |
12:53:26 | * | boopsies is now known as boopsiesisaway |
13:01:40 | * | thotypous quit (Quit: WeeChat 1.3) |
13:03:06 | * | thotypous joined #nim |
13:03:22 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:06:54 | * | irrequietus joined #nim |
13:23:45 | * | Ven joined #nim |
13:35:17 | * | Jesin joined #nim |
13:41:40 | * | joelmo quit (Quit: Connection closed for inactivity) |
13:50:39 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:21:10 | * | BitPuffin joined #nim |
14:32:22 | * | jaco60 joined #nim |
14:32:25 | * | Ven joined #nim |
14:34:48 | * | joelmo joined #nim |
14:41:25 | * | smodo joined #nim |
14:54:15 | * | pregressive joined #nim |
14:55:49 | * | BitPuffin quit (Ping timeout: 256 seconds) |
15:10:45 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
15:11:40 | * | coffeepot joined #nim |
15:21:00 | * | pregressive quit (Remote host closed the connection) |
15:26:26 | * | BitPuffin joined #nim |
15:29:23 | * | zaquest quit (Quit: Leaving) |
15:29:45 | * | zaquest joined #nim |
15:53:21 | * | smodo quit (Remote host closed the connection) |
15:57:32 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:11:42 | * | boydgreenfield joined #nim |
16:12:18 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:13:20 | * | irrequietus quit () |
16:28:04 | * | Ven joined #nim |
16:35:22 | * | xorbit joined #nim |
16:35:54 | * | BitPuffin quit (Remote host closed the connection) |
16:38:18 | xorbit | Is it possible to have a module override functionality from the system module, and indicate that it is the preferred implementation so I won't get an "ambiguous call" error? |
16:38:53 | reactormonk | xorbit, via a term rewriting macro? |
16:42:31 | * | BitPuffin joined #nim |
16:42:37 | xorbit | Can you give an example? I'm making a module named `cstrop` that duplicates string operations but uses cstrings for embedded (standlone) use. It provides a `$` that produces a cstring instead of string, but I get this error: `Error: ambiguous call; both system.$(x: int) and cstrop.$(value: int) match for: (int)`. How can I fix it? |
16:44:54 | reactormonk | ah, that's a bit more involved. |
16:45:20 | * | pregressive joined #nim |
16:50:51 | * | boydgreenfield quit (Quit: boydgreenfield) |
16:54:25 | xorbit | I basically want to say "use mine, not the system's". This seems to work if the code is in the same module, but not when it's loaded from a separate module. |
16:55:09 | * | pregressive quit (Remote host closed the connection) |
16:55:41 | * | boydgreenfield joined #nim |
16:57:53 | * | brson joined #nim |
17:00:19 | Araq | xorbit: yeah, there is no way to do it except hacks |
17:00:42 | xorbit | Hacks may work :) |
17:03:08 | * | tmm1 joined #nim |
17:03:33 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:13:33 | * | gokr joined #nim |
17:14:28 | * | pregressive joined #nim |
17:16:54 | * | skyforce77 joined #nim |
17:17:09 | skyforce77 | Hi :) |
17:18:37 | skyforce77 | I'm learning Nim and I have a problem with imports. Anyone want to help me? ^^' |
17:20:13 | skyforce77 | I created a procedure in the file B and want to use it in file A |
17:20:32 | gokr | Make sure you use "*" to export the proc. |
17:21:28 | skyforce77 | So "*" is to make the function in a public state? |
17:21:59 | skyforce77 | Thanks ;) |
17:22:38 | xorbit | Yes put * after the proc name to make it public |
17:27:42 | * | pregressive quit (Remote host closed the connection) |
17:28:05 | * | razaaa joined #nim |
17:28:37 | * | irrequietus joined #nim |
17:28:45 | * | pregressive joined #nim |
17:36:32 | * | boydgreenfield quit (Quit: boydgreenfield) |
17:38:23 | * | Jehan_ joined #nim |
17:43:50 | * | boydgreenfield joined #nim |
18:08:51 | * | Matthias247 joined #nim |
18:11:26 | * | boydgreenfield quit (Quit: boydgreenfield) |
18:14:31 | * | darkf quit (Quit: Leaving) |
18:15:25 | * | boydgreenfield joined #nim |
18:18:40 | xorbit | That's actually getting really annoying that I can't override system library behaviour. I can't even create a simple override string comparison `==` that doesn't need `copyString` and thus won't work in --os:standalone. It flies in the face of everything Nim otherwise stands for. |
18:20:05 | Arrrr | cant you distinct string? |
18:20:19 | xorbit | Explain? |
18:20:38 | * | vendethiel joined #nim |
18:20:49 | Arrrr | type MyString = distinct string |
18:22:22 | xorbit | Hmm, I'll have to check that out. Thanks for the pointer! |
18:23:07 | Arrrr | i hope it is not a nil pointer |
18:23:18 | xorbit | :) |
18:27:12 | * | gsingh93 quit (Quit: ZNC - http://znc.in) |
18:29:03 | * | boopsiesisaway is now known as boopsies |
18:33:49 | * | brson quit (Ping timeout: 246 seconds) |
18:33:52 | * | gsingh93 joined #nim |
18:33:57 | * | brson joined #nim |
18:40:08 | skyforce77 | Is there a putchar like function in nim/modules? |
18:40:51 | xorbit | proc putchar*(c: cchar): cchar {.importc: "putchar", header: "stdio.h", |
18:40:53 | xorbit | cdecl, discardable.} |
18:41:10 | xorbit | That's what I've done to just use the C library putchar |
18:42:56 | skyforce77 | I wanted to not break javascript support but I will do that for now ^-^ |
18:43:07 | skyforce77 | thanks ^^ |
18:43:23 | xorbit | I see... I hope someone else has a better answer :) |
18:45:59 | xorbit | You would think that based on this portability issue, there should be a basic putchar equivanent. Anyone? |
18:48:24 | * | Ven joined #nim |
18:50:23 | * | golak joined #nim |
18:53:01 | * | pregressive quit (Remote host closed the connection) |
19:05:48 | * | Ven quit (Ping timeout: 264 seconds) |
19:06:34 | * | pregressive joined #nim |
19:09:21 | * | Ven joined #nim |
19:14:11 | * | brson quit (Ping timeout: 252 seconds) |
19:16:19 | * | strcmp1 joined #nim |
19:20:58 | * | Arrrr quit (Quit: WeeChat 1.2) |
19:26:20 | * | gXen joined #nim |
19:27:24 | * | irrequietus quit () |
19:30:29 | * | BitPuffin quit (Remote host closed the connection) |
19:38:21 | * | Sornaensis quit (Excess Flood) |
19:39:07 | * | Sornaensis joined #nim |
19:48:06 | * | shodan45 joined #nim |
19:49:27 | * | razaaa quit (Quit: Leaving) |
19:57:23 | * | jaco60 quit (Remote host closed the connection) |
20:00:52 | * | gXen quit () |
20:00:52 | * | jaco60 joined #nim |
20:03:52 | * | flyx quit (Read error: Connection reset by peer) |
20:04:47 | * | brson joined #nim |
20:09:17 | * | boydgreenfield quit (Quit: boydgreenfield) |
20:21:00 | * | Ven quit (Ping timeout: 272 seconds) |
20:23:35 | * | golak quit (Quit: leaving) |
20:30:32 | Jehan_ | skyforce77: `write(f: File, c: char)` is overloaded to call `putc`. |
20:31:16 | * | boydgreenfield joined #nim |
20:33:26 | Jehan_ | skyforce77, xorbit: So, for example: stdout.write('.') |
20:33:45 | * | strcmp1 quit () |
20:34:15 | * | strcmp1 joined #nim |
20:44:23 | skyforce77 | Jehan_: Thanks! :D |
21:03:55 | * | pregressive quit (Remote host closed the connection) |
21:08:45 | * | skyforce77 quit (Quit: Leaving) |
21:10:58 | * | Mat4 joined #nim |
21:11:03 | Mat4 | hello |
21:14:44 | * | strcmp1 quit (Remote host closed the connection) |
21:16:15 | * | tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:23:23 | * | elrood quit (Quit: Leaving) |
21:42:57 | * | boydgreenfield quit (Quit: boydgreenfield) |
21:48:36 | * | Mat4 quit (Quit: Leaving) |
21:48:40 | * | boydgreenfield joined #nim |
21:50:15 | * | Kingsquee joined #nim |
21:55:33 | * | ozra joined #nim |
22:00:08 | * | boydgreenfield quit (Quit: boydgreenfield) |
22:03:12 | * | vendethiel quit (Ping timeout: 250 seconds) |
22:04:24 | * | xet7 quit (Quit: Leaving) |
22:06:02 | * | saml quit (Quit: Leaving) |
22:09:06 | * | rollo joined #nim |
22:18:21 | onionhammer | any news on the C++ front? :) |
22:19:38 | * | shodan45 quit (Quit: Konversation terminated!) |
22:37:19 | * | Trustable quit (Remote host closed the connection) |
22:39:33 | * | enamex quit (Ping timeout: 255 seconds) |
22:41:04 | Araq | xorbit: well for --os:standalone we could delegate string's == to your panicoverride.nim or whatever |
22:41:26 | Araq | so yeah, you need to create PR patching system.nim, big deal. |
22:45:28 | Araq | no, screw that. |
22:45:58 | Araq | just implement a copyString .compilerproc that doesn't copy anything but instead just passes back the given pointer. |
22:46:51 | Araq | onionhammer: there is 1 showstopper bug left before I can work on the C++ bug |
22:55:48 | Araq | proc copyString(src: NimString): NimString {.compilerProc.} = src # easy, peasy |
22:55:51 | onionhammer | Araq ah thanks for the update |
22:56:06 | * | boopsies is now known as boopsiesisaway |
22:56:43 | Araq | I can hear you scream "what is a compiler proc"? |
22:57:31 | Araq | it's just a strange term for a proc that is called by the code generator |
23:15:57 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:16:36 | * | Varriount_ joined #nim |
23:18:37 | * | bjz joined #nim |
23:20:12 | * | Varriount quit (Ping timeout: 264 seconds) |
23:22:04 | * | Varriount__ joined #nim |
23:23:16 | * | Varriount_ quit (Ping timeout: 246 seconds) |
23:26:37 | * | Varriount__ is now known as Varriount |
23:29:17 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:31:14 | * | Jehan_ quit (Quit: Leaving) |
23:34:12 | onionhammer | araq code seems to crash here |
23:34:14 | onionhammer | var procBody = prc[6].processBody(retFutureSym, subtypeIsVoid, nil) |
23:38:51 | onionhammer | any ideas? |
23:43:27 | * | pleiosaur quit (Ping timeout: 255 seconds) |
23:43:40 | Araq | onionhammer: I have a couple of theories. |
23:44:02 | * | pleiosaur joined #nim |
23:44:03 | Araq | you can grep for cmdCompileToCpp and see for yourself |
23:45:48 | xorbit | Araq: thanks for looking into this! |
23:46:09 | * | X67r quit (Quit: leaving) |
23:47:43 | * | xorbit left #nim (#nim) |
23:53:43 | * | Sahnvour quit (Read error: Connection reset by peer) |