00:49:39 | * | yeti quit (Ping timeout: 260 seconds) |
00:53:09 | * | cm quit (Ping timeout: 260 seconds) |
00:57:12 | * | cm joined #nim |
01:01:29 | * | yeti joined #nim |
01:14:20 | * | Jjp137_ joined #nim |
01:31:44 | * | hafeezbutt joined #nim |
01:31:51 | hafeezbutt | Hello |
01:34:52 | * | hafeezbutt is now known as Kali009 |
01:36:14 | Kali009 | Hello |
01:36:47 | * | Kali009 left #nim (#nim) |
03:15:34 | * | derpydoo joined #nim |
03:28:33 | * | rockcavera quit (Remote host closed the connection) |
03:47:12 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
03:47:38 | * | SchweinDeBurg joined #nim |
04:38:05 | * | xtr00 joined #nim |
07:49:16 | * | Jjp137_ quit (Ping timeout: 255 seconds) |
07:52:16 | * | joast quit (Ping timeout: 256 seconds) |
07:53:57 | * | lumidify quit (Ping timeout: 250 seconds) |
07:59:48 | * | lumidify joined #nim |
08:07:31 | * | joast joined #nim |
08:25:29 | * | beholders_eye joined #nim |
09:15:10 | * | thunder quit (Remote host closed the connection) |
10:00:47 | * | Jjp137_ joined #nim |
10:43:50 | * | derpydoo quit (Quit: derpydoo) |
11:35:15 | FromDiscord | <kiloneie> Is there a way to import a module with initialized variables, and use those variables ? |
11:39:21 | FromDiscord | <janakali> yes, just make a global variable and don't forget to export it with '' |
12:10:51 | * | Artea quit (Ping timeout: 244 seconds) |
12:28:47 | FromDiscord | <albassort> sent a code paste, see https://play.nim-lang.org/#pasty=uFdiUQES |
12:28:59 | FromDiscord | <albassort> upon importing this module, x will be run, and you can get x |
12:29:06 | FromDiscord | <albassort> (edit) "upon importing this module, x will be run, and you can get x ... " added "from child modules" |
12:34:11 | FromDiscord | <kiloneie> i've tested with moduleA importing moduleB(who imports moduleC and exports it), with moduleC having `var player: Player(name: "Kilos", x: 10, y: 25)`, and it totally worked echoing the player. and then i had to export the types in order to modify them.↵↵I thought this was not possible(some forum post...)... |
12:53:37 | FromDiscord | <albassort> In reply to @kiloneie "i've tested with moduleA": are they public? |
13:05:04 | FromDiscord | <kiloneie> ??? |
13:36:57 | FromDiscord | <kiloneie> Is there some particular reason, that when from "module" importing Entity, Direction, which then moduleB uses, Direction errors, but when moduleB imports Direction itself, it's fine ?... my brain is melting on this one... |
13:42:24 | * | thunder joined #nim |
13:47:18 | * | Flox joined #nim |
13:52:49 | * | thunder quit (Killed (NickServ (GHOST command used by metasintactic))) |
13:52:51 | * | metasintactic joined #nim |
14:07:40 | FromDiscord | <Laylie> could be anything, show code |
14:20:56 | FromDiscord | <kiloneie> too many modules involved.↵↵I am more interested why i can't load a texture using SLD in a non-main module... im just getting SIGSEGV... |
14:26:18 | FromDiscord | <kiloneie> This works in main.nim, with everything imported with many modules as relays. But it doesn't work with every dependancy satisfied as i can see, in a sub module... https://media.discordapp.net/attachments/371759389889003532/1419691279708848269/Screenshot_2025-09-22_16-25-33.png?ex=68d2ae09&is=68d15c89&hm=4327e86380363cac199593cb77a1f3ba72362acc1b3a95960bef8b070497a22f& |
14:30:34 | FromDiscord | <kiloneie> if i just put that into a proc, export it, call it, it works... |
14:30:48 | FromDiscord | <kiloneie> okay... has to be something with sdl dll loading... |
14:32:26 | FromDiscord | <demotomohiro> Probably because you need to call some initialization functions in SDL before calling any SDL functions.↵And you probably need to read SDL manual to use it correctly. |
14:32:57 | FromDiscord | <kiloneie> In reply to @demotomohiro "Probably because you need": I was suspecting that yes. |
14:35:10 | FromDiscord | <kiloneie> I wonder if it would be too much of a performance hit, if every single Entity type i have, initialized the required stuff for SDL and loaded their own images... |
14:51:18 | * | Flox quit (Quit: Client closed) |
14:55:38 | * | Phlox joined #nim |
14:56:06 | * | Phlox left #nim (The Lounge - https://thelounge.chat) |
14:56:17 | FromDiscord | <kiloneie> this compiles, and so does seq[proc], but i can't seem to be able to do anything with them... https://media.discordapp.net/attachments/371759389889003532/1419698824451985519/Screenshot_2025-09-22_16-55-49.png?ex=68d2b510&is=68d16390&hm=63f02c6ff71dfdd2d235415d46587aeb0422f21e7ee30f700ecbbb5e5d148256& |
14:56:39 | FromDiscord | <kiloneie> i was hoping to .add a proc to a seq[proc()] or just the one... |
15:16:00 | * | metasintactic quit (Remote host closed the connection) |
15:23:12 | * | SchweinDeBurg quit (Ping timeout: 258 seconds) |
15:23:35 | * | om3ga joined #nim |
15:26:50 | * | SchweinDeBurg joined #nim |
15:43:17 | * | beholders_eye quit (Ping timeout: 265 seconds) |
16:25:40 | * | redj quit (Ping timeout: 256 seconds) |
17:00:15 | * | phlox joined #nim |
18:00:41 | * | beholders_eye joined #nim |
18:31:44 | * | beholders_eye quit (Ping timeout: 244 seconds) |
19:32:14 | FromDiscord | <zanu025> sent a long message, see https://pasty.ee/jOzckonx |
19:42:18 | FromDiscord | <Elegantbeef> I'm really getting tired of all this matrix spam |
20:10:34 | FromDiscord | <leorize> they all comes from Discord though |
20:12:40 | FromDiscord | <Elegantbeef> That's the joke |
20:26:11 | FromDiscord | <odexine> has anyone ever been hired by spamming in random chats in the history of the world |
20:28:33 | FromDiscord | <leorize> to many it doesn't hurt to try |
20:36:24 | FromDiscord | <nnsee> it's ridiculous |
20:36:35 | FromDiscord | <nnsee> i've banned like 10 job spammers this week |