d

How can I break on exception using ddbg

I'm using the d programing language to write a program, and I'm trying to use ddbg to debug it. When there is an exception, I want to have the program break whenever there is an exception thrown so that I can inspect the stack. Alternatively, is there another debugger that works with d? Is there another way to get a stack trace when t...

Impressions of D?

I've checked the tags and there is nothing for D - the programming language from Digital Mars. It is listed 12th on the TIOBE index, just after Ruby, so it must have some following. Anybody been using this? What are initial impressions? ...

An IDE for D

Does anyone know of an IDE for the D Programming Language? ...

D Programming Language in the real world?

Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D. Despite the lack of known big users, D seems like a very promissing language to me, and according to TIOBE, it's fairly popular. ...

D-Editor with debugging

Hi, i've been programming a while in D (http://www.digitalmars.com/d/) now. I prefer it to Java because it is faster. However, i have not found an Editor that supports Code-Completion and Debugging (Step-Over, Step-Into, Breakpoints,...). Do you have any suggestions? P.S: gdb did not work. ...

How can I grab single key hit in D Programming Language + Tango?

I read this article and try to do the exercise in D Programming Language, but encounter a problem in the first exercise. (1) Display series of numbers (1,2,3,4, 5....etc) in an infinite loop. The program should quit if someone hits a specific key (Say ESCAPE key). Of course the infinite loop is not a big problem, but the re...

Hidden features of D

Continuing on the hidden features meme, I'd like to ask, what are the lesser-known features of the D programming language that every D user should know about? Some related program language "hidden features" questions: Hidden features of C++ Hidden features of C# Hidden features of Java Hidden features of Python Hidden features of Ruby...

How do I install the D programming language into C:\Program Files?

The prompt says that if I install the software into a directory with spaces: the rebuild build tool used by the D Shared Source System will fail to build and that I will be forced to reinstall in a different location However, I don't like random things in my C:\ drive. D, IMO, belongs in Program Files with PHP and MinGW and s...

C++ versus D

Is the D language a credible alternative to Java and C++? What will it take to become a credible alternative? Should I bother learning it? Does it deserve evangelizing? The main reason I ask is that with the new c++ standard (c++0x) almost here, its clear to me that the language has gone well past the point of no return with respect to ...

D (and Tango) on PowerPC Linux

It's hard to search for D using Google, so I wasn't able to find a good answer: I have an old iBook G3 and I'd like to install Linux on it and use it to compile (and test) D programs written using Tango on it. Is this possible? Or hasn't anybody tried it, yet? After all the Mac port of GDC + Tango is broken in parts, too. ...

How do you slice arrays in "D"?

How are arrays manipulated in "D"? ...

How do I use the full namespace path to a function in D

I want to be able to use a function such as writefln() but without having to add "import std.stdio" at the top of the file. Another way to explain it is the way you do it in C++. You can type "std::cout << "Test";" and that will stop you from having to add "using namespace std;". I want to do the same thing but in D. ...

D Templates: Coolest Hack

What is the coolest somewhat practical metaprogramming hack you've done or seen done in the D programming language? Somewhat practical means excluding, for example, the compile-time raytracer. ...

Is anyone using D in commercial applications?

Ok, this is a little open ended, but I think D could do with a bit of promotion. Personally I think D is a superb implementation language - but it's not mainstream enough yet for many people to take it seriously. Since it's not commerically backed, the only way to change that is through community effort and visibility. So I'd really li...

Does the D programming language have a future?

I stumbled several times over D and really asked myself why it isn't more popular. D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with the programmer productivity of modern languages like Ruby and Python. Special attention is given to the needs of quality assurance, document...

Applications development with D language

For those who had developed applications with D, which libraries did you use to build your application? those libraries were good documented? did you use Tango? do you feel that D is ready to build big applications? which IDE did you use? Descent maybe? Thanks in advance. Jonathan. ...

printing floating point numbers in D

It's been quite a while since I last used D Programming Language, and now I'm using it for some project that involves scientific calculations. I have a bunch of floating point data, but when I print them using writefln, I get results like: 4.62593E-172 which is a zero! How do I use string formatting % stuff to print such things as 0? R...

gartrip calibration file format/generation

I need to generate calibration file* for the Gartrip program. Does anyone known where I can find the file format it uses or, better yet, code for generating them? I'm not to picky on the language. If no one point me at anything better, I'm working on getting some examples to reverse engineer. Shouldn't be to bad as I have reason to exp...

How do you deal with discrete sets of non integer numbers?

I have a program that needs to do a *compile time checkable** map from one known set of values to another known set of values: in out ------------ 8 37 10 61 12 92 13 1/4 109 15 1/4 151 etc This would be easy if the inputs were either integers or evenly spaced. I'm going to be iterating over the rows but also w...

How should I do an equality test for 80bit IEEE floating point?

related to: comparing ieee floats and doubles for equality Should we compare floating point numbers for equality against a relative error Most effective way for float and double comparison However with regard to 80 bit IEEE floats (see section 8.2) on an x86 In particular I like the this implementation using a count of representable...