Re: Associative Array, key and value as type of string or char[]

2013-02-02 Thread timewulf
"pause" : "pauses a process" ]; > } > > void main() { > // ... > } > > You can even make the AA immutable if it never changes: > > immutable string[string] ch_Description; > > Ali > Thanks, I applied both and errors are gone. Timewulf

Re: Associative Array, key and value as type of string or char[]

2013-02-02 Thread timewulf
On 02.02.2013 17:06, FG wrote: > On 2013-02-02 16:06, Namespace wrote: >> string[string] ch_Description = [ >> "kill" : "kills a process", >> "pause" : "pauses a process" >> ]; >> >> writeln(ch_Description); // does not work, but it should > > Doesn't work in the c

Re: Associative Array, key and value as type of string or char[]

2013-02-02 Thread timewulf
On 02.02.2013 16:06, Namespace wrote: > import std.stdio; > > void main() { > string[string] ch_Description = [ > "kill" : "kills a process", > "pause" : "pauses a process" > ]; > > // writeln(ch_Description); // does not work, but it should > foreach (string k

Associative Array, key and value as type of string or char[]

2013-02-02 Thread timewulf
so on and I can accept the reasons, but I can't believe, there's no possible solution for my underlaying idea. Any ideas? timewulf

Re: Tutorial on how to build DMD/druntime/phobos and docs from source?

2013-02-01 Thread timewulf
On Friday, 1 February 2013 at 15:41:25 UTC, timewulf wrote: With the complete infos to dmd-installation, I'll try to create a new dmd2.ebuild for installation out of git now. I'll post it, when it is ready. I've got adapted the ebuild and the patch of v 2.060 to 2.061. May yo

Re: Tutorial on how to build DMD/druntime/phobos and docs from source?

2013-02-01 Thread timewulf
On 01.02.2013 13:08, Joseph Rushton Wakeling wrote: > Have you tried installing LDC? I consider it by far the friendliest > install experience of all the D compilers, and if someone was going to > have a go at reworking the install scripts for DMD, it'd be worth > following this model. > http://wi

Re: Tutorial on how to build DMD/druntime/phobos and docs from source?

2013-02-01 Thread timewulf
to try-out if he can easily understand some samples, changing some parameters to see if they work as expected, doesn't want to put much time into installation before. Greetings, Timewulf (Berthold Humkamp)

Re: Tutorial on how to build DMD/druntime/phobos and docs from source?

2013-01-30 Thread timewulf
g, but leaving anything out wouldn't point out, what I wanted to say. Thanks all for your work on dmd. Maybe - and I hope so - I can help a bit in the future and do some of the work myself. Greetings, Timewulf

Re: Returning dynamic array from the function

2013-01-29 Thread timewulf
On Wednesday, 17 October 2012 at 20:38:03 UTC, bearophile wrote: Jonathan M Davis: there's no way for the compiler to always catch it for you.< I think there are type systems able to always catch this kind of bug (conservative region analysis, it means that if it can't demonstrate the memor