D is a systems programming language developed by Walter Bright.

learn more… | top users | synonyms

5
votes
1answer
41 views

“event_foo” method event system in D

The goal is to be able to call an event_<name> method on an object if it implements it, or otherwise do nothing, without needing to explicitly define and ...
0
votes
1answer
113 views

Null-delimited to printf %b converter

I wrote a D implementation of the nul2pfb utility from here, as the link to the source code was broken and I wanted to try to learn D. I noticed that it was rather slow (could barely keep up with the ...
8
votes
1answer
535 views

C++ vs D - Algorithm Optimization/Conversion (Using vectors/arrays)

OK, I've been playing with D for a while (and been in love with its expressive power and simplicity, to be honest). However, since I'm still new to D, I'm facing a few issues. Let's take the ...
0
votes
2answers
270 views

How code be this piece of code be refactored?

I use DMD 1.056 with Tango 0.99.9 to build a GPX document using API. I am a beginner in D language. Usage DMD 1.056 with Tango 0.99.9 is compulsory as a requirement The GPX data are here hardcoded ...
10
votes
1answer
360 views

Mixin and template-heavy code for a Silverlight clone

I've made a mock version of Silverlight in D2. It is meant to output HTML, but since I don't know HTML yet, its current output is in. HTML is not the reason I'm here, though. The goal of my project ...