Re: How to share an appender!string?

2016-05-19 Thread Thorsten Sommer via Digitalmars-d-learn
Dear all, I am done :) Thanks @Kagamin, @Rene and @rikki for the help. Short answers: @Rene: You are right, I missed the starting of that task i.e. thread. Used before spawn() where the thread runs directly. But spawn() crashes dpaste.pl... @rikki: Yes, I known what you mentioned ;) I just

Re: How to share an appender!string?

2016-05-19 Thread Thorsten Sommer via Digitalmars-d-learn
On Thursday, 19 May 2016 at 10:13:21 UTC, rikki cattermole wrote: At this point I'd recommend you to just ignore Appender. Write your own. Dear rikki, Thanks for the proposal :) Here is the new attempt #4 as simple test case: https://dpaste.dzfl.pl/f6a9663320e5 It compiles & runs, but the

How to share an appender!string?

2016-05-19 Thread Thorsten Sommer via Digitalmars-d-learn
Dear community, I tried to create a kind of collector module which collects strings by using a shared appender!string. Why? To collect KPIs at a huge program across multiple classes and threads and store it later as e.g. CSV file in order to analyse it by using R. But I failed... Attempt

Re: Issue with casting types

2016-05-17 Thread Thorsten Sommer via Digitalmars-d-learn
On Tuesday, 17 May 2016 at 13:13:54 UTC, Steven Schveighoffer wrote: On 5/17/16 8:59 AM, Steven Schveighoffer wrote: I think you need to avoid it for now. Please file an issue. I see from ag0aep6g, that there is already an issue. I updated it. -Steve Thanks ag0aep6g and Steve for the

Issue with casting types

2016-05-17 Thread Thorsten Sommer via Digitalmars-d-learn
Dear all, I run into an issue with a simple cast: https://dpaste.dzfl.pl/8e7f7c545eb1 I have a base class and a class A with inherit from that base class: A <- BaseClass If the base class contains an "alias this", any casting attempt fails because the "alias this" type gets considered.

Re: How to split a string/array with multiple separators?

2016-05-13 Thread Thorsten Sommer via Digitalmars-d-learn
Wow, thanks Steve :)

Re: How to split a string/array with multiple separators?

2016-05-12 Thread Thorsten Sommer via Digitalmars-d-learn
On Wednesday, 16 December 2015 at 15:27:22 UTC, Marc Schütz wrote: On Wednesday, 16 December 2015 at 14:47:26 UTC, Dragos Carp wrote: On Wednesday, 16 December 2015 at 14:18:28 UTC, Borislav Kosharov wrote: I want to split a string using multiple separators. In std.array the split function has