| 00:16:21 | * | dddddd quit (Ping timeout: 265 seconds) |
| 00:22:54 | * | yglukhov joined #nim |
| 00:27:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 00:27:34 | * | endragor joined #nim |
| 00:32:16 | * | endragor quit (Ping timeout: 255 seconds) |
| 00:41:44 | * | irrequietus quit (Ping timeout: 244 seconds) |
| 00:59:17 | * | endragor joined #nim |
| 01:04:09 | * | endragor quit (Ping timeout: 260 seconds) |
| 01:12:39 | * | endragor joined #nim |
| 01:14:47 | * | arnetheduck joined #nim |
| 01:16:50 | * | endragor quit (Ping timeout: 250 seconds) |
| 01:18:48 | * | NhanH joined #nim |
| 01:22:20 | * | zielmicha joined #nim |
| 01:24:03 | * | CARAM__ joined #nim |
| 01:34:02 | * | chemist69 quit (Disconnected by services) |
| 01:34:07 | * | chemist69_ joined #nim |
| 01:39:09 | * | r4vi joined #nim |
| 01:44:14 | * | endragor joined #nim |
| 01:45:01 | * | yglukhov joined #nim |
| 01:48:33 | * | endragor quit (Ping timeout: 240 seconds) |
| 01:49:40 | * | yglukhov quit (Ping timeout: 255 seconds) |
| 02:01:14 | * | desophos joined #nim |
| 02:30:38 | * | bogen joined #nim |
| 02:47:40 | * | brson quit (Quit: leaving) |
| 02:47:48 | * | brson joined #nim |
| 02:48:23 | * | yglukhov joined #nim |
| 02:52:57 | * | yglukhov quit (Ping timeout: 265 seconds) |
| 03:19:39 | * | Demon_Fox joined #nim |
| 03:22:09 | * | brson quit (Quit: leaving) |
| 03:38:32 | * | chemist69_ quit (Ping timeout: 250 seconds) |
| 03:43:30 | * | chemist69 joined #nim |
| 04:06:44 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 04:07:02 | * | space-wi_ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 04:08:37 | * | bjz joined #nim |
| 04:10:18 | * | mcc joined #nim |
| 04:20:31 | * | space-wizard joined #nim |
| 04:23:26 | * | castlelore quit (Quit: WeeChat 1.5) |
| 04:34:01 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 04:50:24 | * | yglukhov joined #nim |
| 04:54:55 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 05:03:32 | * | Senketsu quit (Quit: Leaving) |
| 05:13:41 | * | yglukhov joined #nim |
| 05:18:04 | * | yglukhov quit (Ping timeout: 252 seconds) |
| 05:43:36 | * | kunev quit (Ping timeout: 276 seconds) |
| 05:46:03 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 05:49:45 | * | kunev joined #nim |
| 06:02:05 | * | fastrom joined #nim |
| 06:15:11 | * | kunev quit (Quit: е те!) |
| 06:21:53 | * | fastrom quit (Quit: Leaving.) |
| 06:24:13 | * | kunev joined #nim |
| 06:35:24 | * | yglukhov joined #nim |
| 06:39:50 | * | yglukhov quit (Ping timeout: 258 seconds) |
| 06:53:09 | * | mcc quit (Quit: Connection closed for inactivity) |
| 06:54:58 | * | rtr_ joined #nim |
| 06:56:14 | * | xet7 quit (Quit: Leaving) |
| 07:07:29 | * | fastrom joined #nim |
| 07:11:00 | * | irrequietus joined #nim |
| 07:12:02 | * | delian66_ joined #nim |
| 07:14:18 | * | liori_ joined #nim |
| 07:14:59 | * | sarlalian_ joined #nim |
| 07:16:52 | * | delian66 quit (Ping timeout: 240 seconds) |
| 07:16:52 | * | kunev quit (Ping timeout: 240 seconds) |
| 07:16:53 | * | michael_campbell quit (Ping timeout: 240 seconds) |
| 07:16:53 | * | sarlalian quit (Ping timeout: 240 seconds) |
| 07:16:53 | * | liori quit (Remote host closed the connection) |
| 07:17:49 | * | kunev joined #nim |
| 07:18:32 | * | ofelas quit (Ping timeout: 240 seconds) |
| 07:19:41 | * | GustavoLapasta joined #nim |
| 07:19:43 | * | ofelas joined #nim |
| 07:22:00 | * | irrequietus quit (Ping timeout: 244 seconds) |
| 07:23:20 | * | stisa joined #nim |
| 07:49:03 | * | rtr_ quit (Remote host closed the connection) |
| 07:54:46 | * | rtr_ joined #nim |
| 08:05:19 | * | vendethiel quit (Ping timeout: 260 seconds) |
| 08:07:54 | * | nsf joined #nim |
| 08:29:55 | * | nsf quit (Quit: WeeChat 1.5) |
| 08:35:29 | * | xet7_ joined #nim |
| 08:36:25 | * | fastrom quit (Quit: Leaving.) |
| 08:47:34 | * | fastrom joined #nim |
| 08:57:44 | * | yglukhov joined #nim |
| 09:11:19 | * | castlelore joined #nim |
| 09:13:48 | * | Learath2 quit (Read error: Connection reset by peer) |
| 09:45:52 | * | Demon_Fox quit (Quit: Leaving) |
| 09:49:10 | * | hendi joined #nim |
| 10:00:35 | * | emery is now known as ehmry |
| 10:00:39 | * | Ven joined #nim |
| 10:01:28 | * | fastrom1 joined #nim |
| 10:03:31 | * | fastrom quit (Ping timeout: 265 seconds) |
| 10:04:03 | * | chemist69 quit (Ping timeout: 264 seconds) |
| 10:08:08 | * | chemist69 joined #nim |
| 10:10:07 | * | hendi quit (Ping timeout: 252 seconds) |
| 10:55:07 | * | dddddd joined #nim |
| 11:03:35 | * | liori_ is now known as liori |
| 11:29:34 | NimBot | nim-lang/Nim devel ff3cf00 Andreas Rumpf [+0 ±1 -0]: fixes #4656; ropes.nim checks properly for file equality |
| 11:29:34 | NimBot | nim-lang/Nim devel 7e643d7 Andreas Rumpf [+0 ±1 -0]: koch nsis: don't hardcode the path to NSIS |
| 11:30:34 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 11:32:41 | federico3 | is any of you guys in Seattle? |
| 11:40:28 | * | cheatfate joined #nim |
| 11:53:31 | * | cheatfate quit (Ping timeout: 252 seconds) |
| 11:58:45 | * | rtr_ quit (Remote host closed the connection) |
| 12:03:50 | * | Ven joined #nim |
| 12:04:36 | * | rtr_ joined #nim |
| 12:07:54 | * | stisa quit (Quit: quitting...) |
| 12:10:27 | * | GustavoLapasta quit (Read error: Connection reset by peer) |
| 12:10:54 | * | GustavoLapasta joined #nim |
| 12:11:15 | * | GustavoLapasta quit (Read error: Connection reset by peer) |
| 12:11:37 | * | GustavoLapasta joined #nim |
| 12:12:12 | * | brechtm joined #nim |
| 12:12:19 | * | Gustavo joined #nim |
| 12:12:42 | * | Gustavo is now known as Guest99664 |
| 12:16:31 | * | GustavoLapasta quit (Ping timeout: 265 seconds) |
| 12:19:57 | * | desophos quit (Read error: Connection reset by peer) |
| 12:28:28 | * | pafmaf joined #nim |
| 12:30:13 | * | irrequietus joined #nim |
| 12:43:18 | euantor | Nope, why? |
| 12:49:37 | * | rtr_ quit (Remote host closed the connection) |
| 12:49:58 | * | rtr_ joined #nim |
| 12:56:52 | * | rtr_ quit (Remote host closed the connection) |
| 12:58:26 | * | rtr_ joined #nim |
| 13:01:36 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:02:01 | * | Guest99664 joined #nim |
| 13:02:21 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:02:46 | * | Guest99664 joined #nim |
| 13:03:06 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:03:31 | * | Guest99664 joined #nim |
| 13:03:50 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:04:16 | * | Guest99664 joined #nim |
| 13:04:36 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:05:01 | * | Guest99664 joined #nim |
| 13:05:20 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:05:46 | * | Guest99664 joined #nim |
| 13:06:05 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:06:31 | * | Guest99664 joined #nim |
| 13:06:50 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:07:13 | * | Guest99664 joined #nim |
| 13:07:27 | * | PMunch joined #nim |
| 13:07:39 | * | Guest99664 quit (Read error: Connection reset by peer) |
| 13:08:03 | * | Guest99664 joined #nim |
| 13:10:28 | * | cheatfate joined #nim |
| 13:13:15 | * | brechtm_ joined #nim |
| 13:13:24 | * | brechtm quit (Read error: Connection reset by peer) |
| 13:16:32 | * | fredrik92 joined #nim |
| 13:32:06 | * | cheatfate quit (Ping timeout: 244 seconds) |
| 13:32:28 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 13:39:07 | * | Guest99664 quit (Ping timeout: 250 seconds) |
| 13:47:25 | * | brechtm_ quit (Remote host closed the connection) |
| 13:58:37 | * | nsf joined #nim |
| 14:01:16 | * | brechtm joined #nim |
| 14:18:03 | * | fredrik92 quit (Quit: Windows Update: Rebooting...) |
| 14:18:18 | * | Senketsu joined #nim |
| 14:22:26 | * | brechtm quit () |
| 14:26:34 | * | fredrik92 joined #nim |
| 14:34:09 | * | GustavoLapasta joined #nim |
| 15:19:12 | * | dddddd quit (Ping timeout: 240 seconds) |
| 15:35:15 | * | cheatfate joined #nim |
| 15:35:15 | * | GustavoLapasta quit (Ping timeout: 250 seconds) |
| 15:35:35 | * | hendi joined #nim |
| 15:42:27 | * | hendi quit (Ping timeout: 264 seconds) |
| 15:45:14 | * | Demon_Fox joined #nim |
| 15:56:46 | * | cheatfate quit (Ping timeout: 244 seconds) |
| 16:05:00 | * | nairobi joined #nim |
| 16:15:03 | * | pafmaf quit (Ping timeout: 240 seconds) |
| 16:42:12 | * | nairobi quit (Remote host closed the connection) |
| 16:46:59 | * | Ven joined #nim |
| 16:57:09 | * | rtr_ quit (Remote host closed the connection) |
| 17:03:36 | * | rtr_ joined #nim |
| 17:25:55 | * | nsf quit (Quit: WeeChat 1.5) |
| 17:34:08 | * | dddddd joined #nim |
| 17:39:03 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 17:48:37 | * | fredrik92 quit (Quit: Shutting down...) |
| 18:01:24 | * | mfc joined #nim |
| 18:02:13 | * | mfc left #nim ("Wololo...") |
| 18:08:22 | * | newb254354 joined #nim |
| 18:10:08 | * | rtr_ quit (Remote host closed the connection) |
| 18:12:24 | newb254354 | Hey guys. I'm playing with some exmaples from the documentation, more specifically from http://nim-lang.org/docs/backends.html and the section "Nim invocation example from C". I'm stuck when trying to compile my resulting c files with gcc (using the example syntax). More specifically, the error message is as follows: |
| 18:12:40 | newb254354 | nimcache\stdlib_system.c: In function 'sysfatal_91221_1689653243': nimcache\stdlib_system.c:11333:1: warning: 'noreturn' function does return |
| 18:15:57 | newb254354 | Now, i'm thinking this guide might be out of date. Or my setup is to blame. Running the latest nim (0.14.2 (2016-06-09) [Windows: amd64]) and using TDM-GCC (gcc version 5.1.0 (tdm64-1)). Any hints on what I might be doing wrong? |
| 18:23:59 | * | yglukhov joined #nim |
| 18:24:03 | * | castlelore quit (Ping timeout: 240 seconds) |
| 18:25:32 | yglukhov | Araq: mind having a look at my prs please? |
| 18:27:05 | newb254354 | Never mind guys. It was only a compiler warning, so i guess it doesn't matter... :P |
| 18:27:40 | dom96 | newb254354: ahh cool, was about to investigate :) |
| 18:28:57 | yglukhov | vegansk: ping |
| 18:29:17 | yglukhov | dom96: please, merge my pr with jsons |
| 18:29:23 | NimBot | nim-lang/Nim devel dddae2d Yuriy Glukhov [+0 ±1 -0]: Fixed frame corruption |
| 18:29:23 | NimBot | nim-lang/Nim devel 06ab03b Dominik Picheta [+0 ±1 -0]: Merge pull request #4662 from yglukhov/json-frame-corruption... 2 more lines |
| 18:29:25 | dom96 | yglukhov: just did |
| 18:29:35 | yglukhov | cool. thanks! |
| 18:29:40 | * | rtr_ joined #nim |
| 18:30:12 | newb254354 | dom96: thanks anyway! :) i'm so used to ANY output other than success meaning something is broken so it was a knee jerk reaction to assume the compilation didn't succeed. |
| 18:30:52 | dom96 | newb254354: I think warnings like that are worth investigating anyway, maybe you could open an issue on github for it? |
| 18:32:11 | newb254354 | dom96: Yeah, you're probably right about that. I'll go ahead and do so. |
| 18:34:23 | dom96 | thanks! |
| 18:40:55 | * | PMunch quit (Quit: leaving) |
| 18:41:41 | * | krux02 joined #nim |
| 18:42:24 | krux02 | is there an operator that works like dynamic_cast in c++? |
| 18:42:41 | krux02 | cast is more like a reinterpret_cast |
| 18:44:12 | * | castlelore joined #nim |
| 18:49:00 | * | castlelore quit (Client Quit) |
| 18:49:04 | def- | krux02: type() |
| 18:49:32 | krux02 | isn't type supposed to give me the type of an experssion? |
| 18:51:58 | * | dddddd quit (Ping timeout: 250 seconds) |
| 18:53:14 | krux02 | def-: do you mean this `type(value) is MyType: ... else: 0` |
| 18:53:57 | krux02 | I could not find anything saying it would check for the dynamic type |
| 18:55:14 | def- | krux02: nono, just int(10.2) |
| 18:55:29 | def- | where type = int |
| 18:56:10 | krux02 | I need this for inheritage |
| 18:56:17 | * | Trustable joined #nim |
| 18:56:47 | krux02 | I have a base class and subtypes and I need to check weather weather I have a subtype or not |
| 18:59:56 | yglukhov | krux02: if myVarThatIsSuperType of MySubType: let mySubtypedVar = MySubType(myVarThatIsSuperType) |
| 19:00:08 | yglukhov | or just convert and catch a conversion error |
| 19:00:09 | yglukhov | =) |
| 19:00:35 | krux02 | yglukhov: thanks, that sounds promising |
| 19:01:08 | krux02 | this is one thing where I prefer the c++ syntax |
| 19:02:06 | Araq | C++ also supports T(x) syntax :P |
| 19:02:22 | yglukhov | krux02: template dynamic_cast(T: typedesc, v: typed): T = if v of T: T(v) else: nil |
| 19:02:26 | krux02 | if(auto mySubtypeVar = dynamic_cast<MySubType*>(myVarThatIsSuperType)) { ... } |
| 19:02:37 | yglukhov | one liner |
| 19:03:00 | krux02 | but can I use it in an if expression like in c++? |
| 19:03:13 | krux02 | I don't think so |
| 19:03:31 | Araq | sure you can |
| 19:03:49 | Araq | if (let x = ...; x != nil): |
| 19:04:08 | krux02 | thanks a lot |
| 19:04:53 | yglukhov | Araq: tbh, i think it could be a nice sugar. if let myVar = foo(): |
| 19:05:03 | yglukhov | and could easily be implemented i guess |
| 19:05:26 | * | dddddd joined #nim |
| 19:05:29 | yglukhov | swift does it |
| 19:05:30 | yglukhov | =) |
| 19:05:48 | krux02 | rust has it in the documentation, too. |
| 19:06:05 | yglukhov | well yeah, its handy |
| 19:06:36 | krux02 | but in c++ it's pretty unknown |
| 19:07:07 | Araq | dunno how these languages keep the type safety of 'bool' |
| 19:07:33 | Araq | avoiding the () is one thing, auto conversion to a bool context another |
| 19:07:44 | yglukhov | Araq: indeed. maybe we should reconsider this after default not nil is implemented to see how it goes |
| 19:07:48 | krux02 | in c++ there is an automatic conversion from any pointer type to bool type, and in rust it is an excption for the if statement |
| 19:08:29 | yglukhov | krux02: that is a feature from only one perspective. a bug from another. |
| 19:08:29 | Araq | I know what C++ does. I asked about Swift and Rust |
| 19:08:43 | euantor | What is it we're discussing? |
| 19:08:49 | euantor | Type conversion/casting? |
| 19:09:08 | krux02 | I never programmed in rust, but I saw that they documented it |
| 19:09:15 | yglukhov | Araq: can you review my pr please? |
| 19:09:17 | krux02 | but they need an optional type for it |
| 19:09:18 | euantor | IIRC, Rust will return an Option<T>, so the actual boolean condition is checking if i is Some (true) or Nonw (false) |
| 19:09:23 | Araq | converter toBool[T](x: ref T): bool = x != nil |
| 19:09:37 | euantor | *None |
| 19:10:09 | krux02 | Araq: will the convertey appy to a let statement? |
| 19:10:40 | Araq | does a let statement yield x's type? |
| 19:10:49 | Araq | no, it yields void :P |
| 19:11:14 | yglukhov | krux02: you could easily write a template that allows the following: if llet myObj = foo(): ... |
| 19:11:20 | yglukhov | llet would do the magic =) |
| 19:11:43 | Araq | I don't think this will work |
| 19:11:54 | Araq | because of the colon |
| 19:12:08 | Araq | but somebody needs to try it :-) |
| 19:13:04 | Araq | what's there to review? dom96 merged it? |
| 19:14:27 | krux02 | I just tried the converter, but let expressions in nim do not have a type (and I think this is good) |
| 19:14:49 | dom96 | Araq: he's got multiple PRs |
| 19:16:24 | * | V_S_C joined #nim |
| 19:18:30 | Araq | krux02: converter plus yglukhov's template should get you somewhere |
| 19:18:55 | * | kang00 joined #nim |
| 19:19:24 | kang00 | Have you used any Web api on Web based ide or compiler? |
| 19:19:59 | krux02 | I am currently writing a macro ``myif``, but I fail to pass a let expression to it |
| 19:20:16 | krux02 | myif(let p = maybe()): |
| 19:20:20 | krux02 | won't parse |
| 19:21:48 | * | kulelu88 joined #nim |
| 19:24:05 | yglukhov | Araq, krux02: interesting. it looks like `=` can not be used inside an ast tree passed to a macro... |
| 19:25:23 | krux02 | yglukhov, it can, but not the way you tried it or want it |
| 19:25:49 | dom96 | hello kang00, not entirely sure what you mean |
| 19:25:53 | krux02 | the last argement to a macro can be an arbitrary block and there you can have as many let's as you want |
| 19:26:43 | * | irrequietus quit () |
| 19:26:51 | NimBot | nim-lang/Nim devel 8fca040 Araq [+0 ±5 -0]: some attempts to make symbolfiles work again |
| 19:26:51 | NimBot | nim-lang/Nim devel a13cb26 Araq [+0 ±11 -0]: next steps in getting symbol files to work again |
| 19:26:51 | NimBot | nim-lang/Nim devel 7630cd0 Araq [+0 ±1 -0]: updated test case |
| 19:26:51 | NimBot | nim-lang/Nim devel 68e30d7 Araq [+0 ±6 -0]: tester cleanup; enable some rod tests |
| 19:26:51 | NimBot | 2 more commits. |
| 19:26:59 | * | irrequietus joined #nim |
| 19:27:14 | Araq | NimBot is in da house :-) |
| 19:27:47 | dom96 | yeah, until nimbuild crashes again :P |
| 19:27:57 | newb254354 | dom96: FYI i filed an issue about it here: https://github.com/nim-lang/Nim/issues/4664 |
| 19:28:18 | dom96 | newb254354: thanks |
| 19:28:36 | newb254354 | dom96: np |
| 19:28:46 | krux02 | this works now: |
| 19:28:49 | krux02 | myif((let pi = maybe();)): |
| 19:28:49 | krux02 | echo pi[] |
| 19:29:33 | Araq | newb254354: will close it soon :P we don't care about C warnings |
| 19:30:04 | kang00 | dom96 I want to know how to use Web Api? |
| 19:30:36 | dom96 | Araq: why not? |
| 19:31:07 | dom96 | kang00: what do you want to write? A web app? |
| 19:31:18 | Araq | they never told me anything important |
| 19:32:16 | Araq | newb254354: did you touch the config? cause we just disable warnings |
| 19:32:26 | kang00 | Nope; I am not coder; I just want to see web Api in action. I don't have machine. |
| 19:32:30 | kang00 | http://www.programmableweb.com |
| 19:32:37 | kang00 | dom96 |
| 19:32:50 | kang00 | I am referring this site for Web api |
| 19:32:55 | kang00 | How to read or interpret such api |
| 19:33:03 | kang00 | Can you help me? |
| 19:33:16 | kang00 | I understand each Api has many libraries |
| 19:33:26 | kang00 | Each library many modules |
| 19:33:32 | kang00 | Is it correct? |
| 19:34:05 | newb254354 | Araq: Allright. I wasn't sure about your stance with compiler warnings so i figured it might be an issue. No i didn't touch any config. I'm not completely sure exactly what config you're reffering to though |
| 19:34:12 | kang00 | How to download api from that url? |
| 19:34:28 | dom96 | kang00: is this at all related to the Nim programming language? |
| 19:34:35 | Araq | newb254354: the nim.cfg that ships with your Nim compiler |
| 19:34:48 | kang00 | Nope can you help me in pm? dom96 |
| 19:35:04 | newb254354 | Araq: If so, no i haven't touched it. |
| 19:35:07 | dom96 | kang00: ask in ##programming |
| 19:35:08 | * | space-wizard joined #nim |
| 19:35:20 | Araq | newb254354: I guess this means it's valid bug report then ;-) |
| 19:35:23 | kang00 | I tried yesterday |
| 19:35:46 | dom96 | kang00: I can't help, sorry. |
| 19:35:56 | kang00 | Ok |
| 19:36:54 | newb254354 | Araq: Allright, i'll clarify that in the bug report. Thanks. |
| 19:42:01 | * | chemist69 quit (Ping timeout: 255 seconds) |
| 19:43:21 | * | newb254354 quit (Quit: Page closed) |
| 19:50:54 | * | kang00 left #nim ("AndroIRC") |
| 19:51:09 | * | Ven quit (Ping timeout: 260 seconds) |
| 19:51:39 | Araq | yglukhov: are you sure your jssys.nim changes don't affect PHP? |
| 19:52:29 | yglukhov | Araq: i tried to not break PHP, but not 100% sure. |
| 19:54:53 | * | Ven joined #nim |
| 20:00:54 | * | V_S_C quit (Quit: Page closed) |
| 20:04:53 | * | rtr_ quit (Remote host closed the connection) |
| 20:09:06 | * | chemist69 joined #nim |
| 20:11:28 | * | rtr_ joined #nim |
| 20:26:41 | * | libman joined #nim |
| 20:34:32 | * | Ven quit (Ping timeout: 240 seconds) |
| 20:39:05 | * | Ven joined #nim |
| 20:49:35 | * | Ven quit (Read error: Connection reset by peer) |
| 20:50:02 | * | Ven joined #nim |
| 21:00:30 | * | rtr_ quit (Remote host closed the connection) |
| 21:21:56 | krux02 | yay I wrote a macro that did what I wanted :D |
| 21:22:06 | krux02 | macro ifof(sym: typed, t : typedesc, blk: untyped): stmt = |
| 21:22:06 | krux02 | let ident = newIdentNode($sym.symbol) |
| 21:22:06 | krux02 | result = quote do: |
| 21:22:06 | krux02 | if (let `ident` = cast[`t`](`sym`); `sym` of `t`): |
| 21:22:06 | krux02 | `blk` |
| 21:22:30 | krux02 | the usage: |
| 21:22:31 | krux02 | ifof(x, ptr MyObject): |
| 21:22:31 | krux02 | echo x.banone |
| 21:33:11 | * | GustavoLapasta joined #nim |
| 21:37:15 | krux02 | ok not that great because it doesn't work with else or elif, but I made an update |
| 21:38:30 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 21:41:03 | * | libman quit (Remote host closed the connection) |
| 21:47:49 | * | chemist69 quit (Ping timeout: 260 seconds) |
| 21:50:38 | * | vendethiel joined #nim |
| 21:51:47 | * | chemist69 joined #nim |
| 22:07:48 | * | GustavoLapasta quit (Quit: Leaving) |
| 22:09:58 | * | cheatfate joined #nim |
| 22:16:10 | * | nsf joined #nim |
| 22:24:49 | * | AnonymousCoward joined #nim |
| 22:30:25 | * | cheatfate quit (Ping timeout: 252 seconds) |
| 22:40:40 | * | bjz joined #nim |
| 22:41:07 | * | krux02 quit (Quit: Verlassend) |
| 22:58:31 | * | Trustable quit (Remote host closed the connection) |
| 23:03:15 | * | Ven joined #nim |
| 23:04:29 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 23:27:38 | * | irrequietus quit () |
| 23:45:27 | NimBot | nim-lang/Nim devel 7aa6494 Araq [+0 ±1 -0]: disable rodfile tests depending on gtk |