Dealing with unicode

2016-07-29 Thread Fabian via Digitalmars-d-learn
I'm trying to add support for unicode to my app in D and having issues. string str = "Pokémon No"; writeln(str); this outputs: Pok├®mon No what I want to do is change the funky character such that the string reads: Pok\u00e9mon No as \u00e9 == é how can i do this in D?

Strange behaviour of var

2011-11-10 Thread Fabian
} } pi = (hits / n) * 4.f; writeln(pi); } } But the result is always 0 because my var hits is set to zero before I try to calculate PI. But why? Please help me. Nice wishes Fabian

Re: Strange behaviour of var

2011-11-10 Thread Fabian
Thank you - now it works :)

Re: Strange behaviour of var

2011-11-10 Thread Fabian
oh ... I see. Thank you ;)

Smartest way to read a number?

2011-11-10 Thread Fabian
= readNumber!int(); writeln(n); float f = readNumber!float(); writeln(f); } catch(Exception e) { writeln(e.msg); } } Can I use that function or is there a cleaner way to do this job? Greetings Fabian

Re: Smartest way to read a number?

2011-11-10 Thread Fabian
Thanks a lot. That's exactly what I was searching for.

Re: Smartest way to read a number?

2011-11-10 Thread Fabian
Andrej Mitrovic wrote: This: https://github.com/he-the-great/JPDLibs/tree/cmdln/cmdln The HTML docs explain how to use it. Not mine, but I think this would be a sweet addition to Phobos imo. Thank you. :)

Re: Smartest way to read a number?

2011-11-10 Thread Fabian
Ok - Good to know. Thank you ;)

Re: Install DWT2 using DMD and Tango

2011-06-09 Thread Fabian
of renaming and moving everything. This was to make porting easier. It also combined dwt-linux, dwt-windows dwt-mac under one repository. Fabian, I think you should check that Tango is properly installed. From the repo: The sc.ini/dmd.conf of the DMD in the PATH needs to have all necessary parameters

Re: Install DWT2 using DMD and Tango

2011-06-09 Thread Fabian
I decided to use gtkD but I would be very glad if anybody is able to solve my problem.

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Oh - yeah. Thank you - English can be so easy :D

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
++ compiler has got a bad code optimization. Is that true? In comparison with the Microsoft Visual Studio compiler. Greetings Fabian

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Okay - Thank you. Greetings Fab

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Is D1.x still supported and under development?

Install DWT2 using DMD and Tango

2011-06-08 Thread Fabian
who can help me? I believe it's possible to use DWT2 and Tango - isn't it? Greetings Fabian

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
I'm very surprised that there are so many Germans who use D. Maybe the German D book is a reason for that. I don't know but it's pretty cool.

Re: Is it reasonable to learn D

2011-06-08 Thread Fabian
Das ist ja klasse. Deutschland, Österreich, Schweiz - alle da

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Fabian
But I try to install DWT2. Do you understand? I've got the Tango book but it's pretty difficult to install DWT2. So I can't build GUI apps. Greetings Fabian

Is it reasonable to learn D

2011-06-07 Thread Fabian
answers. Greetings Fabian PS: If you want to contact me you are allowed to write an Email to me. contact-...@freemail.de

Re: Is it reasonable to learn D

2011-06-07 Thread Fabian
. Connecting to that (my bad English) I have another stupid question: What does think accounts mean? Greetings Fabian

Re: Is it reasonable to learn D

2011-06-07 Thread Fabian
too bad :-( How do you use D? What are your fields of application? Greetings Fabian PS: Are you a native German speaker?

Using C function in Tango - Simple solution?

2010-02-24 Thread Fabian Classen
Germany Fabian Classen

Re: Using C function in Tango - Simple solution?

2010-02-24 Thread Fabian Classen
Am Wed, 24 Feb 2010 19:58:59 + schrieb Robert Clipsham: On 24/02/10 19:46, Fabian Classen wrote: Hi I am new in D. I've the following problem. I want to use a old function out of the C programming language. I'm using D, with the dmd compiler, and the Tango lib. My dirty solution