www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - d opinion

reply bobef <bobef_member pathlink.com> writes:
i really like d, but i think it still cant get any work
done for me. everytnig i try - fails.
i can not make it work with non-english (bulgarian)
characters. i can't write such characters in the source .d
file nor can readline them. readlinew also fails...
conversation between char/wchat fails. i can't printf/writef
wchar strings. toUTF/encode/decode doesnt make much sense
for me if i can use it only for english charaters.
i wrote my own functions but d does not accept bulgarian!
i coudnt find function to convert hex string to integer.
also is it reading files in binary mode?

..overall i think it should be drived to a little lowerer
level to support general programming... it is still great
but at this stage of development not in any use (at least) for me...
i was ready to abandon c++ and move to d, but i just cant get
any work done with it...
Aug 02 2004
next sibling parent reply Arcane Jill <Arcane_member pathlink.com> writes:
In article <cel4t0$2vhp$1 digitaldaemon.com>, bobef says...
i really like d, but i think it still cant get any work
done for me. everytnig i try - fails.
i can not make it work with non-english (bulgarian)
characters. i can't write such characters in the source .d
file nor can readline them.
What OS are you using? What text editor are you using? This sounds like a pretty easy problem to sort out.
readlinew also fails...
conversation between char/wchat fails.
That part sounds a little strange. The functions in std.utf work fine. How are you using them?
i can't printf/writef
wchar strings. toUTF/encode/decode doesnt make much sense
for me if i can use it only for english charaters.
Of course, but that's not the case. D uses Unicode. So let's try to figure out why things are not working for you. Start with the OS and the text editor, and we'll take it from there.
i wrote my own functions but d does not accept bulgarian!
Yes it does.
i coudnt find function to convert hex string to integer.
also is it reading files in binary mode?
scanf(). Same as C.
i was ready to abandon c++ and move to d, but i just cant get
any work done with it...
I use D in preference to C++ now for personal projects, because I can develop in it so much faster (and I've been programming in C++ since it was invented). Arcane Jill
Aug 02 2004
parent Sean Kelly <sean f4.ca> writes:
Arcane Jill wrote:
 In article <cel4t0$2vhp$1 digitaldaemon.com>, bobef says...

i coudnt find function to convert hex string to integer.
also is it reading files in binary mode?
scanf(). Same as C.
The readf() stuff I just released is worth looking at as well, especially if you also want to be able to read non-UTF8 strings. I haven't put it up on dsource yet, it's only available here: http://home.f4.ca/sean/d/unformat.d Note that with 0.97 you have to compile std.format.d into any project using unformat.d Sean
Aug 02 2004
prev sibling parent Arcane Jill <Arcane_member pathlink.com> writes:
In article <cel4t0$2vhp$1 digitaldaemon.com>, bobef says...

Missed this bit:

also is it reading files in binary mode?
I guess you're using Windows then. That's okay - so am I. Depends how you open your files. If you're new to D, why not start with good old fashioned fopen(), then you can specify "rt" or "rb" mode as you choose. The std.stream.File class doesn't work quite as you'd expect. It has some quirks that take some getting used to. But I think Ben and others are doing some work on the next generation of stream classes, so it will all end up being really smooth and intuitive one day in the near future. But like I said, let's keep things simple. Use fopen() for now - you can't go wrong with that (assuming you're familiar with it, obviously). We'll sort out the character encoding problem first (which I don't think will take long) and then you can start throwing in extra complexity. Arcane Jill
Aug 02 2004