All,
I'm using Xamarin Studio 4.08 and Mono-D to program D with the DMD2 compiler. When I try to compile the following (from The D Programming Language - Alexandrescu, 2010- Page 10):
import std.array;
bool binarySearch(T)(T[] input, T value)
{
…
I believe D has the potential to add yet another cool feature to its suite of compilers, namely the power to disallow non-side-effect calls to pure functions.
For example
auto s = "a";
toStringz(a);
should error just like
a == "";
currently errors…
Let's say I have two source files, one written in the D programming language and the other one written in the C programming language. I both just compile them, the D source with the DMD (Digital Mars D-Compiler) and the C source with the GCC…
I have just installed D programming language(dmd installer) and wrote a small program helloworld.d , but when I run in my windows in command promote using this command:
C:/D>dmd helloworld.d
it is giving error saying: "dmd is not recognized as an…