I\'m trying to translating the MySql C connector 6.02 headers to D, but I get some weird crashes. My guess is I\'ve made some mistakes on translating the structs or function (I\'m not very good at C).
I\'m trying to compile GDC (v2) on Windows 7, using MinGW\'s MSYS. When I get to this step: $ ../configure --enable-languages=d --disable-shared --disable-bootstrap
I\'ve got this very simple D program (pk.d): import std.stdio; import SDL; int main(string[] args) { writefln(\"Hello world\");
I\'m looking to improve the D garbage collector by adding some heuristics to avoid garbage collection runs that are unlikely to result in significant freeing.One heuristic I\'d like to add is that GC
I\'m trying to understand some code in the D language runtime.It seems like there are separate functions for the following two things:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
(Compiled with dmd v2.051) Code like this: import dsfml.graphics.all; void main() { while(true) auto rect = new Image(1024, 1024);
According to the documentation, __traits(hasMember, ...) is supposed to w开发者_如何学运维ork with any type that has members, but I can\'t get code that uses it with classes to compile. Observe the fo
I\'ve al开发者_运维问答ways wondered: isn\'t ptrdiff_t supposed to be able to hold the difference of any two pointers by definition? How come it fails when the two pointers are too far? (I\'m not poin
I\'m learning D, and I have a simple program that reads in a text file line by line, separates each line into its distinct words, and prints the whole 开发者_C百科thing to stdout.