Dealing with unicode

2016-07-28 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?

Re: Smartest way to read a number?

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

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
Thanks a lot. That's exactly what I was searching for.

Smartest way to read a number?

2011-11-10 Thread Fabian
int n = 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: Strange behaviour of var

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

Re: Strange behaviour of var

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

Strange behaviour of var

2011-11-10 Thread Fabian
ts); //only for debugging } } 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

GTKD doesn't work too

2011-06-09 Thread Fabian
app I get the following error message: http://imageshack.us/photo/my-images/42/gtkderror.png/ I'm looking forward to your answers and I hope you can help me. Greetings Fabian PS: I'm using Windows 7 x64, DMD 1.068, Tango 0.99.9

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: Install DWT2 using DMD and Tango

2011-06-09 Thread Fabian
On 08.06.2011 23:57, Jesse Phillips wrote: Andrew Wiley Wrote: On Wed, Jun 8, 2011 at 11:54 AM, Fabian wrote: Hi I'm trying to install DWT2 to create GUI applications with D. I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and Rake. But when I try to

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

Re: Is it reasonable to learn D

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

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.

Install DWT2 using DMD and Tango

2011-06-08 Thread Fabian
re anybody 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
Is D1.x still supported and under development?

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
Digital Mars C++ 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
ll game (Jump 'n' Run, ...) I would be very glad to know that my compiler has got a good code optimization. Greetings Fabian PS: I believe that's no big problem that there's no German community because my English is understandable - I think. But it's more comfortable to communicate in German.

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-07 Thread Fabian
ce.org/projects/dwt/wiki That's too bad :-( How do you use D? What are your fields of application? Greetings Fabian PS: Are you a native German speaker?

Re: Is it reasonable to learn D

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

Is it reasonable to learn D

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

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 comp

Using C function in Tango - Simple solution?

2010-02-24 Thread Fabian Classen
a few code exampes. Greetings from Germany Fabian Classen