I need to get the product of an arbitrary number of variables. The actual number of variables and their values will be known at compile-time, however ...
I need to get the product of an arbitrary number of variables. The actual number of variables and their values will be known at compile-time, however ...
I'm working on a project in the D language and I want to use a module from the standard library called std.sumtype. I'm on debian oldstable, and I've ...
For N=1, I would use std.array : empty to check for length being at least N, and avoid having to go through the whole input. For N>1 (or all N), w ...
I want to to put the first letter of a string into lowercase in D. As a string is imutable in D, there doesn't seem to be a simple way. I came up wi ...
In D language, what is the shortest way to construct an array from a given range? Let I have an iterator i. How to make an array of its elements (in ...
Why I can't use std.algorithm.iteration.sum with Duration[] ? I thought I can use the sum in the same way than e.g. with int[]: But instead I get ...
I use mysql-native that return Variant data type. I need to convert it to standard types like int, string etc. D have std.conv, but std.variant also ...
When sending a Message to a stopped vibe.d Task, the application gets an segmentation fault. I did not expect the message to be delivered, but to get ...
Is it possible to get the class/struct/other variables value during runtime in dlang to get/set its value? If yes how to do that please provide exampl ...
In python I can use glob to search path patterns. This for instance: import glob for entry in glob.glob("/usr/*/python*"): print(entry) Would p ...
For example, I can not compile using GDC 5.2.0 (2016-02-05T11:17:49.3234388) a program importing std.meta because that file is not found. I was compa ...
The following code refuses to compile: With this error message: Why? ...
Here's simple code: Looks like it should work, but it won't compile. DMD 2.068.2 fails with this error: It compiles if I insert .array before .s ...
I am writing a simple script in D that needs to interface with command-line network programs that use IP domain addresses (e.g. 10.0.14.0/24). Is the ...
I'm sure I'm missing something obvious here - the rest of D (even the compiler errors) have been very sensible and easy to understand. I have a std.co ...
The following code fails to compile: With the error message: But the [standard library (http://dlang.org/phobos/std_algorithm_searching.html#.co ...
How to remove all occurrences of a string in another? I can do this using the following code: But I wonder if there is a dedicated function for thi ...
I am reading Phobos docs. Sometimes I can't understand the logic of some methods. Date roll Adds the given number of years or months to this Date ...
How to construct easily a raw byte-by-byte InputRange/ForwardRange/RandomAccessRange from a file? ...
I have been working on a class-based finite random access range. When performing a few tests on it: I got this compilation error in GDC 4.9.2, rega ...