Log for #openttd on 16th August 2014:
Times are UTC Toggle Colours
00:04:00  *** Zer0_ [] has joined #openttd
00:17:35  *** yorick [] has quit [Remote host closed the connection]
00:28:48  *** keoz [] has quit [Quit: WeeChat 0.4.3]
00:31:03  *** Tirili [] has quit [Quit: ChatZilla [SeaMonkey 2.26.1/20140623143310]]
00:48:23  *** Zer0 [] has joined #openttd
00:48:59  *** Zer0 is now known as Guest683
00:53:12  *** Zer0__ [] has joined #openttd
00:53:23  *** Zer0_ [] has quit [Ping timeout: 480 seconds]
00:59:23  *** Guest683 [] has quit [Ping timeout: 480 seconds]
01:30:04  *** luaduck is now known as luaduck_zzz
02:14:34  *** trendynick [~trendynic@] has quit [Ping timeout: 480 seconds]
02:30:21  *** KouDy [~koudy@] has quit [Read error: Operation timed out]
02:34:32  *** KouDy [~koudy@] has joined #openttd
02:44:03  *** Hazzard [] has joined #openttd
02:45:24  *** Hazzard_ [] has joined #openttd
03:25:52  *** HerzogDeXtEr [~flex@] has quit [Quit: Leaving.]
03:33:46  *** LSky` [] has joined #openttd
04:01:28  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
04:22:32  *** KWKdesign [] has quit [Read error: Operation timed out]
04:23:21  *** KWKdesign [] has joined #openttd
04:24:58  *** DabuYu [DabuYu@] has joined #openttd
04:28:10  *** Hazzard is now known as Guest695
04:28:10  *** Hazzard_ is now known as Hazzard
04:28:23  *** Guest695 [] has quit [Quit: Bye]
04:28:36  *** Hazzard_ [] has joined #openttd
04:53:26  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
04:56:02  *** Eddi|zuHause [] has quit []
04:56:18  *** Eddi|zuHause [] has joined #openttd
04:58:03  *** DabuYu [DabuYu@] has joined #openttd
05:11:27  *** HerzogDeXtEr [~flex@] has joined #openttd
05:15:20  *** Djohaal [~Djohaal@] has quit [Read error: Connection reset by peer]
05:26:33  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
05:34:45  *** DabuYu [DabuYu@] has joined #openttd
05:47:47  *** Hazzard [] has quit [Read error: Connection reset by peer]
06:20:04  <Eddi|zuHause>  <ST2> NUTS is how I get among "nut" files :D <-- nut files are for squirrel.
06:24:11  *** HerzogDeXtEr1 [] has joined #openttd
06:29:58  *** HerzogDeXtEr [~flex@] has quit [Ping timeout: 480 seconds]
06:36:51  <planetmaker> moin
06:48:03  *** jjavaholic [] has quit [Read error: Connection reset by peer]
06:48:04  <Eddi|zuHause> "two people die in chess turnament"
06:49:17  *** Jomann [] has joined #openttd
07:07:37  *** Yotson [~Yotson@2001:980:6ac8:1:dda5:18da:a2a0:4a21] has joined #openttd
07:12:37  <peter1138> Battlechess?
07:19:13  *** InvokeStatic [] has quit [Read error: Connection reset by peer]
07:45:54  <Eddi|zuHause> i'm afraid not...
07:53:31  <Rubidium> actually... it was a 14 day event with 3000 participants, assuming all participant being there for all time and using the average chance of dieing (in UK/US), I would say that on average one participant dies during such an event
07:59:08  <Eddi|zuHause> there was apparently also some controversy about people thinking the medics running about with the defibrilator were terrorists with a weapon
08:02:30  *** gelignite [] has joined #openttd
08:03:25  <Rubidium> it could be just one person not recognising it as a defibrilator. Especially since it was in Norway where about three years ago some dude dressed as cop killed 77 people. One person shouting gun, the rest reacts as if there is a gun and there is an immediate frenzy
08:13:51  *** DDR [] has quit [Read error: Connection reset by peer]
08:20:41  *** keoz [] has joined #openttd
08:26:05  *** Flygon [] has joined #openttd
08:26:06  *** Flygon_ [] has quit [Read error: Connection reset by peer]
08:26:09  <Eddi|zuHause> but that is exactly why the terrorists won ages ago...
08:32:42  *** Progman [] has joined #openttd
08:34:27  <Pikka> yep, we should definitely cultivate a culture where no-one reacts at all in an emergency. that'll show those terrorists.
08:38:00  <Eddi|zuHause> don't feed the trolls
08:49:26  *** Wolf01 [] has joined #openttd
08:49:50  <Wolf01> hello o/
09:18:46  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
09:25:32  *** Midnightmyth [] has joined #openttd
09:26:52  *** tokai|noir [] has joined #openttd
09:26:55  *** mode/#openttd [+v tokai|noir] by ChanServ
09:27:41  *** DabuYu [DabuYu@] has joined #openttd
09:33:11  *** tokai|mdlx [] has quit [Ping timeout: 480 seconds]
09:41:47  *** frosch123 [] has joined #openttd
09:51:23  *** Alberth [~hat@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd
09:51:26  *** mode/#openttd [+o Alberth] by ChanServ
09:56:08  *** SylvieLorxu [] has joined #openttd
10:06:03  <DorpsGek> Commit by rubidium :: r26734 trunk/src/script/api/script_list.hpp (2014-08-16 10:05:57 UTC)
10:06:04  <DorpsGek> -Fix-ish: make clear the AI/GS List's Begin and Next return the item, not the value
10:12:22  *** andythenorth [] has joined #openttd
10:14:21  <Alberth> hi hi
10:14:43  <Wolf01> hi hi
10:15:28  <andythenorth> moin
10:16:54  <frosch123> hai
10:17:10  <Eddi|zuHause> wo
10:17:12  <planetmaker> ho
10:17:16  <LordAro> o/
10:17:23  <DorpsGek> Commit by rubidium :: r26735 trunk/config.lib (2014-08-16 10:17:18 UTC)
10:17:24  <DorpsGek> -Fix (rmakefilerewrite): for profiling CFLAGS got a -p (for prof) and LDFLAGS got -pg (for gprof), but in the end gprof would be used (via make run-prof). Furthermore -pg isn't compatible with -fomit-frame-pointer on certain architectures (most importantly x86(_64)), so simply don't enable that flag when profiling is enabled
10:20:21  <DorpsGek> Commit by rubidium :: r26736 trunk/src/script/api/script_list.cpp (2014-08-16 10:20:15 UTC)
10:20:22  <DorpsGek> -Fix [Script]: infinite loop (by scripts; always returning the same item) when sorted by item in descending order by oddly constructed FindNext that uses forward iterators. Simply use the same code as the ascending item sort but use the reverse iterator instead of the forward. Also do this same trick for the descending value sort even though I couldn't trigger the problem there
10:28:29  *** LadyHawk [] has quit [Quit: Fear is temporary, regret is forever]
10:28:48  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
10:31:31  <DorpsGek> Commit by rubidium :: r26737 trunk/config.lib (2014-08-16 10:31:24 UTC)
10:31:32  <DorpsGek> -Fix (r26735): one = too many... why can't all languages use the same basic definition for comparisons?
10:34:51  <keoz> looks like Rubidium is in a great fixing mood
10:36:01  <Eddi|zuHause> would it have been so hard to look up the revision of the makefile rewrite? :p
10:36:29  <LordAro> harder than not doing it :p
10:37:02  <Rubidium> Eddi|zuHause: if I were to say which revision you would have less of a clue when/what introduced it than this way
10:37:35  <Rubidium> and it's so long ago that there's little doubt whether the release branch is affected
10:38:52  <Eddi|zuHause> so we follow styles only when we feel like it? :p
10:39:30  <frosch123> sure, we use [FS#Eddi] when people are too lazy to properly report
10:42:29  <peter1138> Those rules were probably only put in place to annoy Tron
10:42:47  *** APTX_ [] has quit [Ping timeout: 480 seconds]
10:45:36  *** DabuYu [DabuYu@] has joined #openttd
10:50:55  *** APTX [] has joined #openttd
11:14:03  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
11:18:56  *** yorick [] has joined #openttd
11:20:33  *** DabuYu [DabuYu@] has joined #openttd
11:38:14  <andythenorth> V453000: so did you make a Pipeline set? o_O
11:40:38  <frosch123> i would be surprised :)
11:40:54  <frosch123> V said multiple times that vehicles which do not show their cargo are bollocks
11:41:10  <frosch123> pipelines are even worse
11:41:24  <frosch123> only option would be that V lines  would be nothing like pipelines
11:42:14  <planetmaker> obviously pipelines are glass tubes with slides for cargo in it ;)
11:42:26  <planetmaker> always perfectly polished glass tubes, of course
11:42:45  <frosch123> there could be capsules in it
11:42:46  <planetmaker> (but I know of no such set)
11:42:56  <planetmaker> yeah, slides, capsules. That's what I mean
11:43:00  <frosch123> like "letter shoot"
11:45:51  <frosch123> or as in "the living daylights"
11:46:45  <planetmaker> :)
11:46:48  <frosch123> (the james bond movie, where a person is smuggled from hungary to austria through a pipeline)
11:47:57  <frosch123> i guess marble runs would also work instead of pipelines
11:48:07  <frosch123> then we can make it a proper toyland feature
11:48:33  <planetmaker> :)
11:49:03  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
11:51:40  <andythenorth> proper marble run is all gravity
11:52:26  <frosch123> <- passenger wagon
11:53:36  <frosch123> <- also works as ship
11:53:42  <frosch123> so, basically a hovercraft
11:54:06  <frosch123> compatible to marble-rail and wet-rail
11:56:47  <frosch123> how can i sell that to V for making?
11:56:59  <frosch123> it certainly needs extra-extra-zoom to work out
11:57:52  <frosch123> maybe i could tell him that it would also work for livestock transport, not only passengers
11:59:03  *** Pikka [] has quit [Read error: Connection reset by peer]
12:00:14  *** DabuYu [DabuYu@] has joined #openttd
12:03:29  <Eddi|zuHause> i've only ever seen these on water
12:04:15  <frosch123> the thin ones are likely only used on water, due to people falling
12:04:23  <frosch123> but the thick ones probably work everywhere
12:04:54  <Eddi|zuHause> i assume they have problems with pointy spikey things
12:05:13  <frosch123> you mean the breakdown smoke does not fit? :p
12:10:48  <Eddi|zuHause> also, the game does not actually support hovercraft...
12:12:14  <__ln__> what about eels?
12:13:10  <andythenorth> you can zorb on land
12:13:13  <andythenorth> my friends have done it
12:15:12  <__ln__> if there was a cargo type "eels" that could be transported with hovercraft, how should that be translated into hungarian
12:21:46  *** jjavaholic [] has joined #openttd
12:22:34  <andythenorth> we need hover-pipes
12:25:36  <Eddi|zuHause> my hungarian is certainly way beyond "rusty" :p
12:32:06  <frosch123> my neighbours are hungarian, i should ask them whether they know monty python
12:33:58  <Eddi|zuHause> i don't think i've ever seen the complete series
12:34:24  <frosch123> ah, sun is shining again
12:34:36  <frosch123> i should take these 5 minutes before it starts raining again :)
12:36:30  *** Hazzard [] has joined #openttd
12:42:46  *** Hazzard_ [] has quit [Read error: Operation timed out]
12:51:53  <__ln__> the relevant sketch for those who haven't seen it:
12:58:05  <andythenorth> frosch123: anything I can do towards ship smoke? o_O
13:06:10  <peter1138> Draw it on the ship
13:10:48  *** SylvieLorxu [] has quit [Ping timeout: 480 seconds]
13:11:58  <frosch123> hmm, yeah, i should finish that patch
13:12:49  <frosch123> andythenorth: i guess reminding me every week could help :p
13:21:24  *** luaduck_zzz is now known as luaduck
13:26:19  *** trendynick [~trendynic@] has joined #openttd
13:27:21  *** Zer0__ [] has quit [Ping timeout: 480 seconds]
13:29:58  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
13:38:47  *** DabuYu [DabuYu@] has joined #openttd
13:58:46  <andythenorth> biab
13:58:47  *** andythenorth [] has quit [Quit: andythenorth]
14:03:38  *** Tirili [] has joined #openttd
14:37:36  *** Myhorta [] has joined #openttd
14:49:47  *** keoz [] has quit [Quit: WeeChat 0.4.3]
15:05:02  *** Progman [] has quit [Remote host closed the connection]
15:12:33  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
15:20:55  *** keoz [] has joined #openttd
15:25:59  *** DabuYu [DabuYu@] has joined #openttd
15:42:10  *** andythenorth [] has joined #openttd
15:48:30  <andythenorth> frosch123: I am thinking about releasing Squid 0.1 - but it currently has half-broken smoke in it ;)
15:48:34  <andythenorth> so either I remove, or wait

15:49:26  *** keoz [] has quit [Quit: WeeChat 0.4.3]
15:51:06  <planetmaker> disable temporarily and release
15:52:12  *** keoz [] has joined #openttd
15:53:20  <andythenorth> seems best
16:11:42  *** InvokeStatic [] has joined #openttd
16:11:52  *** Myhorta [] has quit [Ping timeout: 480 seconds]
16:17:24  *** sla_ro|master [slamaster@] has joined #openttd
16:21:26  *** Myhorta [] has joined #openttd
16:24:38  *** Brumi [] has joined #openttd
16:30:07  *** zeknurn [] has quit [Read error: Connection reset by peer]
16:30:58  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
16:41:26  *** DabuYu [DabuYu@] has joined #openttd
16:41:55  *** zeknurn [] has joined #openttd
16:48:33  *** DDR [] has joined #openttd
16:52:25  *** Hazzard_ [] has joined #openttd
17:04:41  *** Hazzard is now known as Guest825
17:04:41  *** Hazzard_ is now known as Hazzard
17:09:56  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
17:09:58  <andythenorth> so I understand that action 14 is static, but could we provide additional info string per parameter value, and show/hide it conditionally on which value is selected?
17:10:22  <andythenorth> i.e. additional to ‘names: {}’ we also have ‘extra_info: {}’
17:11:38  <Alberth> what extra info would you have that you don't need for selecting the option?
17:13:17  <andythenorth> tells you what the option provides
17:13:28  <andythenorth> the name is limiting
17:13:36  <andythenorth> limited /s
17:14:00  <Alberth> you don't have text for the option as a whole?
17:14:30  <frosch123> there is a big description box at the bottom
17:14:32  <Alberth> it would be a bit weird if I have to select an option to read what the option does, doesn't it?
17:15:00  <andythenorth> describing every option in the description box would be quite
17:15:03  <frosch123> yup, advancted settings also describe what their values do in one blob
17:15:22  <andythenorth> not convinced this is a necessary change, just an idea
17:15:30  *** Myhorta [] has quit [Remote host closed the connection]
17:15:54  <frosch123> there is also a readme :)
17:15:58  <andythenorth> for cases like FIRS economies...?
17:16:22  <frosch123> you can put a short summary for every option into the description, and then refer to the readme
17:16:31  <frosch123> how many options do you need to describe?
17:16:42  <andythenorth> I guess 5-12
17:16:51  <keoz> Or even a reference to some online doc ?
17:16:59  <andythenorth> there is an online doc
17:17:29  <andythenorth> ok, so it’s overkill
17:18:56  <keoz> as a side note, online doc needs probably to be improved a little bit
17:20:00  <andythenorth> ?
17:21:02  <keoz> well, a lot of things aren't explained anywere and the wiki page still documents the old behaviour
17:21:09  <keoz> (pre-0.8 ?)
17:21:50  <andythenorth> oh yeah
17:21:56  <andythenorth> that page should just be deleted entirely
17:21:58  <andythenorth>
17:22:04  <andythenorth> $anyone?
17:22:04  <keoz> better improving it ?
17:22:12  <keoz> I 'd be like to work on this.
17:22:23  <andythenorth> right now it’s opinion written as fact
17:22:27  <keoz> But I have the same problem as you: always working on to many projects :)
17:22:51  <andythenorth> deleting is much easier
17:23:32  <andythenorth> I am -1 to explaining too much
17:23:34  <andythenorth> it’s only a newgrf
17:25:02  <keoz> The "only" isn't necessary. It's a great NewGRF, with some specific mechanism, which, IMO, deserves explanations.
17:26:01  <keoz> (thus avoiding what you call "failure demand") :)
17:27:35  <andythenorth> did I delete the stuff about having to run small vehicles?
17:27:39  <andythenorth> looks like someone did
17:28:09  <keoz> Don't know. Didn't watch at it since years
17:29:14  *** DabuYu [DabuYu@] has joined #openttd
17:31:59  <andythenorth> needed doing
17:41:59  <Alberth> add a version number as title, so it's clear it discusses an old version
17:42:16  <Alberth> or even in the page name :)
17:45:09  <keoz> in the page, it's quite clearly stated that parts are outdated
17:45:28  <keoz> I don't think people couldn't see it ... apart being really blind :)
17:46:24  <planetmaker> people generally are totally blind unless you shove it into their face
17:46:27  <planetmaker> and even then...
17:46:48  <DorpsGek> Commit by translators :: r26738 /trunk/src/lang (7 files) (2014-08-16 17:46:36 UTC)
17:46:49  <DorpsGek> -Update from WebTranslator v3.0:
17:46:50  <DorpsGek> catalan - 23 changes by juanjo
17:46:51  <DorpsGek> simplified_chinese - 50 changes by siu238X
17:46:52  <DorpsGek> traditional_chinese - 82 changes by siu238X
17:46:53  <DorpsGek> english_US - 49 changes by Supercheese
17:46:54  <DorpsGek> norwegian_bokmal - 2 changes by cuthbert
17:46:55  <DorpsGek> russian - 47 changes by Lone_Wolf
17:46:56  <DorpsGek> slovak - 1 changes by Milsa
17:47:42  <keoz> planetmaker: yes but for this kind of people, you can anyway consider that there is nothing to do. So, any effort would be useless in any case ;)
17:53:04  *** yorick [] has quit [Remote host closed the connection]
18:03:03  <andythenorth> MAKE IT BIGGER
18:03:05  <andythenorth> ALL OF IT
18:03:08  <andythenorth> usually works
18:30:54  <DorpsGek> Commit by frosch :: r26739 /branches/1.4 (5 files in 3 dirs) (2014-08-16 18:30:47 UTC)
18:30:55  <DorpsGek> [1.4] -Update documentation
18:32:22  <DorpsGek> Commit by frosch :: r26740 /tags/1.4.2 (10 files in 4 dirs) (2014-08-16 18:32:17 UTC)
18:32:23  <DorpsGek> -Release: 1.4.2
18:33:01  <andythenorth> o_O
18:33:29  <frosch123> @calc 488/60
18:33:29  <DorpsGek> frosch123: 8.13333333333
18:51:14  *** glx [] has joined #openttd
18:51:17  *** mode/#openttd [+v glx] by ChanServ
18:55:38  *** DanMacK [~androirc@] has joined #openttd
18:57:11  *** andythenorth [] has quit [Quit: andythenorth]
19:05:36  *** DanMacK [~androirc@] has quit [Ping timeout: 480 seconds]
19:09:23  *** andythenorth [] has joined #openttd
19:10:03  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
19:24:50  *** DabuYu [DabuYu@] has joined #openttd
19:29:58  <andythenorth> any chance of a Bananananas rename
19:30:07  <andythenorth> FISH 2 => Squid Ate FISH!
19:41:34  <Eddi|zuHause> i still don't get why you would do that
19:42:16  <Eddi|zuHause> renaming existing brands creates "failure demand"
19:42:23  <keoz> why not instead squid -> fish2 ? :p
19:43:17  <planetmaker> FISH: Squid ate fish 2
19:45:57  <andythenorth> we should reverse-recurse that
19:46:00  <andythenorth> good luck :)
19:46:57  <andythenorth> also, Yay, A Release
19:47:03  <Eddi|zuHause> recursive naming is boring, you should switch to fractal naming
19:47:12  <andythenorth> o_O
19:49:25  <andythenorth> “Is it possibly to run firs next to the old industries in openttd?"
19:49:34  <andythenorth> hmm
19:51:17  <andythenorth> hrm
19:51:35  <planetmaker> I guess... "No."
19:51:48  <andythenorth> I guess no too
19:52:04  <andythenorth> prizes for you and me
19:52:06  <andythenorth> for being right
19:52:45  <Eddi|zuHause> <-- this is a fractal
19:53:18  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
19:53:21  <andythenorth> ho
19:54:25  <frosch123> <- that too
19:54:31  <Eddi|zuHause> (technically, it's a binary tree)
19:59:43  <Eddi|zuHause> frosch123: but it's "boring" one. much better are fractals that differ ever slightly in each zoom step
20:00:20  *** sla_ro|master [slamaster@] has quit []
20:00:52  <andythenorth> is it bed time yet?
20:00:58  <Eddi|zuHause> no
20:02:52  *** DabuYu [DabuYu@] has joined #openttd
20:04:29  <andythenorth> should I play a game?
20:06:03  <planetmaker> start one
20:06:50  <andythenorth> hmm
20:06:52  <Eddi|zuHause> random question: can i skip an action14 depending on game version?
20:07:00  <andythenorth> I went to sleep at 1am drunk, and woke up at 6am
20:07:08  * andythenorth might be sleepy
20:07:13  *** keoz [] has quit [Ping timeout: 480 seconds]
20:07:31  <planetmaker> in that case, sleep well :)
20:07:56  <Eddi|zuHause> like, a hidden debug parameter that only shows in nightlies?
20:08:51  <planetmaker> not sure whether action7/9 applies to action14. I bet rather not
20:09:22  <Eddi|zuHause> i vaguely remebmer something about skipping action8
20:09:42  <planetmaker> but you might get that effect by proper pre-processing and evaluating the version or anther parameter passed to gcc
20:10:50  <frosch123> action9 can skip action14
20:10:58  <Alberth> andythenorth: you know the forum all-but-first post are usable for a week, right?
20:11:00  <frosch123> iirc that is even explicitly mentioned in the specs
20:11:16  <andythenorth> Alberth: I had a feeling that reserving was silly
20:11:19  <andythenorth> but couldn’t remember why
20:11:51  <Eddi|zuHause> but i suppose nml cannot actually generate such code
20:12:19  <andythenorth> nml certainly hates you if you try more than one action 8
20:12:24  <andythenorth> but that wasn’t your question
20:13:41  <andythenorth> Alberth: deleted them, thanks :)
20:13:53  <Alberth> np
20:15:19  *** trendynick [~trendynic@] has quit [Ping timeout: 480 seconds]
20:23:23  <frosch123> someone knows whether std::map::reverse_iterator is actually only a wrapper around std::map::iterator returning the previous element
20:24:54  *** Yotson [~Yotson@2001:980:6ac8:1:dda5:18da:a2a0:4a21] has quit [Quit: .]
20:24:58  <frosch123> that would imply that a reverse_iterator is invalidated when the element behind it is deleted
20:25:20  <frosch123> unlike the forward iterator, which is only invalidated when the element it is pointing to is invalidated
20:26:50  *** shirish [] has quit [Read error: Connection reset by peer]
20:31:29  <frosch123> indeed, looks like all stl containers use std::reverse_iterator<iterator>
20:32:06  <frosch123> funny, how all specs mention that map, list and co invalidate only iterators pointing to the deleted element
20:32:16  <frosch123> while reverse_iterators do not work at all with deletion :p
20:34:51  <Alberth> stroustrup says that reverse iterators are one further than the element they return on *  section 19.2.5
20:37:40  <DorpsGek> Commit by frosch :: r26741 trunk/src/script/api/script_list.cpp (2014-08-16 20:37:33 UTC)
20:37:41  <DorpsGek> -Revert (r26736): reverse_iterators are invalidated when the element next to them is erased (not the element they are pointing to), which makes them unsuitable for ScriptList.
20:40:32  <DorpsGek> Commit by frosch :: r26742 trunk/src/script/api/script_list.cpp (2014-08-16 20:40:26 UTC)
20:40:33  <DorpsGek> -Doc: Why reverse_iterator is unsuitable for ScriptList iterators
20:43:49  *** Alberth [~hat@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd []
20:53:09  <frosch123> @topic set 1 1.4.2
20:53:09  *** DorpsGek changed the topic of #openttd to: 1.4.2 | Website: * (translator: translator, server list: servers, wiki: wiki, patches & bug-reports: bugs, revision log: hg, release info: finger) | Don't ask to ask, just ask | 'Latest' is not a valid version, 'Most recent' neither | English only | for dev-talk | #openttd.notice for commit notices
20:56:07  *** andythenorth [] has quit [Quit: andythenorth]
20:59:42  <frosch123> certainly learnt something today :)
21:00:08  <frosch123> never use reverse_iterators when modifying a container
21:01:53  <Eddi|zuHause> maybe i'm understanding this wrong, but wouldn't this be solved by iterating ahead one step before deleting?
21:02:35  <frosch123> for that you would actually have to know where your iterator is pointing
21:02:41  <frosch123> also the issue is not only with deletign
21:03:08  <frosch123> after inserting a new item, a reverse_iterator may suddenly point to a different element :p
21:04:02  <frosch123> the specs say clearly that std::vector trashes all iterators on modification. it also says that map, list etc. only invalidate iterators when the element pointed to is deleted
21:04:21  <frosch123> but there is not a single hint about reverse_iterator :p
21:05:40  <frosch123> and while in most algorithms you pretty much know what happens to the elements your iterators point to, you usually do not know what happens around them
21:05:47  <Eddi|zuHause> iterating about the thing you are modifying is bad anyway. if at all, you should iterate over a copy
21:06:00  <frosch123> haha, continue dreaming :p
21:06:09  <frosch123> modifying stuff while iterating is completely standard
21:06:33  <frosch123> you only need to know what the iterators do, and esp. honor the return value of vector::erase
21:07:41  <Eddi|zuHause> sure, but i claim that most people that use iterators don't actually know the "fine print"
21:11:32  <DorpsGek> Commit by frosch :: r26743 trunk/src/script/api/script_list.cpp (2014-08-16 21:11:26 UTC)
21:11:33  <DorpsGek> -Codechange: Simplify ScriptList iterators.
21:13:24  *** Progman [] has joined #openttd
21:14:04  <DorpsGek> Commit by frosch :: r26744 trunk/src/script/api/script_list.cpp (2014-08-16 21:13:58 UTC)
21:14:05  <DorpsGek> -Fix [FS6085-ish]: ScriptListSorterItemDescending::FindNext failed to detect the end.
21:14:47  <frosch123> someone ate a #
21:19:13  <planetmaker> probably a squid.
21:19:17  <planetmaker> it already ate fish, too
21:20:56  <Eddi|zuHause> and i thought you smoke #. shows how little i know...
21:23:04  <planetmaker> the nearest I got to that was in form of cookies ;)
21:24:38  <NGC3982> Evening.
21:24:48  *** Supercheese [~Superchee@] has joined #openttd
21:28:34  <planetmaker> indeed. even so much that it's bed time. Thus good night :)
21:31:31  <NGC3982> :(.
21:32:15  <Eddi|zuHause> bad time?
21:33:04  <NGC3982> I'm selling my SAAB today.
21:33:13  <NGC3982> It will be a great mourning.
21:33:46  <Eddi|zuHause> you own an airplane? :p
21:34:02  <NGC3982> Indeed.
21:34:12  <NGC3982> Well, it does seem to share many attributes of one.
21:34:31  <NGC3982> The weight, width and fuel consumption, for one.
21:35:12  <Eddi|zuHause> well, what do you expect by something made by a company called "swedish airplane manufacturer"
21:36:36  <NGC3982> I hope the displays on the real aircraft holds up better than the one in my car.
22:05:20  *** Tirili [] has quit [Quit: ChatZilla [SeaMonkey 2.26.1/20140623143310]]
22:07:53  *** LSky` [] has quit [Ping timeout: 480 seconds]
22:12:23  *** Brumi [] has quit []
22:33:40  *** Pikka [] has joined #openttd
22:43:48  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
22:44:13  *** DabuYu [DabuYu@] has joined #openttd
22:48:14  *** yorick [] has joined #openttd
22:48:59  <Wolf01> nighty night
22:49:03  *** Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
22:49:05  <frosch123> night
22:49:09  *** frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
22:50:07  *** Jomann [] has quit [Remote host closed the connection]
23:07:51  *** shirish [~quassel@] has joined #openttd
23:20:48  *** DabuYu [DabuYu@] has quit [Ping timeout: 480 seconds]
23:27:28  *** KWKdesign [] has quit [Read error: Operation timed out]
23:27:43  *** KWKdesign [] has joined #openttd
23:33:12  *** DabuYu [DabuYu@] has joined #openttd
23:47:29  *** Progman [] has quit [Remote host closed the connection]

Powered by YARRSTE version: svn-trunk