| 00:00:11 | * | beholders_eye quit (Quit: WeeChat 4.7.2) |
| 00:23:35 | FromDiscord | <punch5799> feels a little jank but that could work! |
| 00:37:04 | FromDiscord | <punch5799> hmmm that could be a solution, but I'm a little reluctant to do that to circumvent semantics. |
| 02:10:47 | FromDiscord | <litlighilit> {.experimental\: "codeReordering".}https://nim-lang.org/docs/manual_experimental.html#code-reordering↵(@fridge777) |
| 02:14:14 | FromDiscord | <litlighilit> Another approach is to implement other part in modules and import them in main module↵(@fridge777) |
| 02:48:21 | * | ftajhii joined #nim |
| 02:51:42 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 02:56:22 | * | SchweinDeBurg joined #nim |
| 03:31:07 | * | rockcavera quit (Remote host closed the connection) |
| 08:38:33 | FromDiscord | <fridge777> Thank you! |
| 08:38:47 | FromDiscord | <fridge777> In reply to @punch5799 "hmmm that could be": What about operator overloading? |
| 09:28:41 | * | xet7 joined #nim |
| 09:39:48 | FromDiscord | <punch5799> how do you mean? |
| 10:10:47 | FromDiscord | <fridge777> If you define your datatype and overload the plus operator to call a function that includes the modulo operation already |
| 10:33:30 | Amun-Ra | §fridge777 | you should be able to turn overflow checks off with compiler options at least |
| 10:33:33 | Amun-Ra | -d=danger |
| 10:33:51 | Amun-Ra | that's an option for sloppy programmers |
| 11:00:20 | FromDiscord | <litlighilit> just --overflowChecks\:off↵is enough.-d\:danger turns off many other checks↵(<@709044657232936960_=41mun-=52a=5b=49=52=43=5d>) |
| 11:07:07 | FromDiscord | <litlighilit> sent a long message, see https://pasty.ee/jlyJixbK |
| 11:07:42 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=lsBVUDlr |
| 11:09:37 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=PFtOVobK |
| 11:11:31 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=eGKJNEEs |
| 11:13:34 | FromDiscord | <litlighilit> er, but this doesn't work for custom int type like `range[0..512]` |
| 12:11:02 | * | beholders_eye joined #nim |
| 13:00:32 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=tTHuKKdU |
| 13:20:34 | * | beholders_eye quit (Ping timeout: 260 seconds) |
| 13:35:00 | * | ehmry joined #nim |
| 13:53:40 | * | xet7 quit (Remote host closed the connection) |
| 14:01:44 | * | beholders_eye joined #nim |
| 16:31:21 | FromDiscord | <lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=ImkaMzMN |
| 16:38:21 | FromDiscord | <nervecenter> In my mind if they're trying to manually convert then they're already taking responsibility for their actions and consequences, so I prefer the simpler one |
| 16:38:34 | FromDiscord | <nervecenter> (edit) "they're" => "someone else is" |
| 16:39:24 | FromDiscord | <nervecenter> (edit) "one" => "one." |
| 16:41:17 | FromDiscord | <lainlaylie> i guess. i feel like conversion should be "safe" and casting is "taking responsibility" |
| 17:49:07 | FromDiscord | <mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=TofrFSIX |
| 18:55:13 | * | beholders_eye quit (Ping timeout: 264 seconds) |
| 19:21:49 | * | przmk quit (Ping timeout: 255 seconds) |
| 19:24:12 | * | przmk joined #nim |
| 20:16:08 | * | jkl quit (Quit: Gone.) |
| 20:37:22 | * | jkl joined #nim |
| 21:13:31 | FromDiscord | <fridge777> sent a code paste, see https://play.nim-lang.org/#pasty=tCGhiCOl |
| 21:15:19 | FromDiscord | <fridge777> nevermind |
| 21:23:20 | * | rockcavera joined #nim |
| 21:41:34 | * | beholders_eye joined #nim |
| 22:57:28 | * | FromDiscord quit (Remote host closed the connection) |
| 22:57:41 | * | FromDiscord joined #nim |
| 23:14:17 | FromDiscord | <punch5799> sent a code paste, see https://play.nim-lang.org/#pasty=zHKOeYOC |
| 23:14:24 | FromDiscord | <punch5799> good suggestion from you fridge! |
| 23:14:38 | FromDiscord | <kirill033197> sent a long message, see https://pasty.ee/zSuJAeOV |
| 23:14:45 | FromDiscord | <kirill033197> @punch5799 |
| 23:18:33 | FromDiscord | <mjsdev> https://tenor.com/bJ9wB.gif |
| 23:18:49 | FromDiscord | <mjsdev> https://media.discordapp.net/attachments/371759389889003532/1446279604892598275/image.png?ex=69336858&is=693216d8&hm=15ae1701c07270fe6ef6c9ae77868e2ce62973332d10fe9aba2e0b8aa0a86fa3& |
| 23:29:52 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 23:41:21 | FromDiscord | <fridge777> if i have a file grid.nim and do import grid in another file, why does nim define a variable named grid? |
| 23:41:50 | FromDiscord | <fridge777> i just want the stuff in the file, not reserve a name im probably gonna use a million times if im working with grids |
| 23:44:43 | FromDiscord | <Jack S.> Are you just looking to include the contents of grid.bim in another file?↵(@fridge777) |
| 23:45:14 | FromDiscord | <fridge777> yes |
| 23:45:24 | FromDiscord | <fridge777> just a normal import |
| 23:45:42 | FromDiscord | <fridge777> since that seems to work, i dont understand why grid needs to be a thing |
| 23:46:02 | FromDiscord | <fridge777> i named the file gridutils now to avoid the conflict |
| 23:47:05 | FromDiscord | <Jack S.> Use include\: https://nim-lang.org/docs/manual.html#modules-include-statement↵(@fridge777) |
| 23:47:13 | FromDiscord | <Jack S.> Use `include`\: https://nim-lang.org/docs/manual.html#modules-include-statement |
| 23:48:03 | FromDiscord | <fridge777> hmm |
| 23:48:04 | FromDiscord | <fridge777> interesting, thank you |
| 23:48:39 | FromDiscord | <litlighilit> import grid as gridutil↵(@fridge777) |
| 23:49:38 | FromDiscord | <Jack S.> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1446286124669730939): Are you just looking to include the contents of grid.nim in another file? |
| 23:51:00 | FromDiscord | <litlighilit> btw, not a `variable name`, but a module symbol, (which is different)it will seldom cause problems↵(@fridge777) |
| 23:51:05 | FromDiscord | <fridge777> also good to know thank you |
| 23:51:13 | FromDiscord | <fridge777> in my case both will work |
| 23:52:27 | FromDiscord | <litlighilit> btw, not a variable name, but a module symbol, (which is different and the two are in separate scopes)↵it will seldom cause problems about conflict |