Re: Finite state machine in D

2012-09-27 Thread Mirko Pilger
What is the D-way to implement fsm with code generation? you might have a look at ragel: http://www.complang.org/ragel/

Re: Magic type return

2012-07-17 Thread Mirko Pilger
i'm not completely sure i understand your problem but i think you are looking for something like this: http://pocoproject.org/docs/Poco.DynamicAny.html maybe the c++ source code could be of some inspiration. this should be possible in d, too.

Re: Parser generator?

2012-07-04 Thread Mirko Pilger
Does someone know of a parser generator for D? http://www.complang.org/ragel/ http://www.semitwist.com/goldie/

Re: Why is List(T) documented in std.concurrency?

2012-04-25 Thread Mirko Pilger
Since there's only one *, it shouldn't show up in the docs, even if it's public. If there is no documentation comment for a declaration, that declaration may not appear in the output. To ensure it does appear in the output, put an empty declaration comment for it. http://dlang.org/ddoc.html

Re: learning D. Experienced issue very quickly.

2012-04-18 Thread Mirko Pilger
I feel like such an idiot. don't worry. you're not the first and not the last being confused by this.

Re: delegates vs functions = practical consequences

2012-04-18 Thread Mirko Pilger
I want to know what is most interesting for me: delegates or functions. I consulted sources but none say the practical consequences of such election. in addition to what john said: regarding _function literals_ the difference is by using a delegate instead of a function you have access to the

Re: Higher-order functions?

2012-04-11 Thread Mirko Pilger
What is the error? e.g. try this: auto someprocedure (int a, int b, int delegate (int, int) f)

Re: Is there a profiler for D2?

2011-09-20 Thread Mirko Pilger
Is there any usable profiler for D2? dmd -profile

porting c++ code to dpl

2011-08-06 Thread Mirko Pilger
hello everybody, i'm new to this language and plan to start learning it by porting parts of an existing c++ library to dpl. i would very much appreciate it if you have some tips tricks, hints of pitfalls or any other experiences to share. mirko