00:04:10 amalloy, "int& weap_eq = ..." ? what kind of black magic is that, some C++ (and not C) thing that I have forgotten? 00:05:07 how I would do what I think alexjurkiewicz is trying to achieve is: int * weap_eq = &you.equip[EQ_WEAPON];...and then if I need to change it, *weap_eq = ... 00:29:48 it's just an ordinary c++ reference but it's unusual to see it for basic types like int 00:30:36 (the one standard use case is when you want the equivalent of multiple return values and pass an int by reference in addition to the regular return value) 00:31:22 black magic of the worst kind 00:31:28 if I want multiple return values I pass pointers :P 00:31:53 I never cared much for C++'s changes from C, other than operator overloading 00:32:02 that was a cool addition 00:32:21 most everything else to me is "meh" at best and "ew" at worst 00:39:35 passing an int * is very similar except with int & you have to really work at it to cause a segfault 00:46:02 Psymania: Top tip, don't start on a Crawl variant if all you know is NetHack's pre-ANSI C :-/ 01:08:38 -!- amalloy is now known as amalloy_ 02:21:19 Experimental (bcrawl) branch on underhound.eu updated to: 0.23-a0-2989-g2cb1824106 03:46:41 Fork (bcadrencrawl) on crawl.kelbi.org updated to: 0.22.1-2549-g8ece12e3a1 03:49:09 Monster database of master branch on crawl.develz.org updated to: 0.24-a0-443-g80245de385 08:46:50 c++ is far from the worst thing about crawl's codebase 08:47:23 pro tip, don't become a crawl dev, either mainline or fork 09:22:40 yeah, I'm relatively fond of c++ now 09:23:07 concise it is not, but it has its points 10:22:38 Stable (0.22) branch on underhound.eu updated to: 0.22.1-61-g4f546fdb5a 12:22:41 Stable (0.23) branch on underhound.eu updated to: 0.23.1-93-ge536e68a2c 14:14:49 -!- jfcaron_ is now known as jfcaron 18:05:45 -!- amalloy_ is now known as amalloy 22:32:06 -!- Amnesiook is now known as Amnesiac