What is the best way to compile programs with DMD on a 64bit machine? It doesn't need to compile to 64Bit code. I know about GDC, but want to work with D2 also. There is also chroot, but am hoping for a simpler way.
The actual problem isn't with compiling, but linking. DMD calls on GCC to perform linking with system libraries. Could I g...
does anybody know how to run dmd under linux? i downloaded the tango linux binary and extracted it to a special folder. i call "export PATH..." but when i tried to run dmd all i get was
bash: /home/user/dmd/bin/dmd: No such file or directory
sorry im new to linux and just installed ubuntu 9.04 64bit.
thanks.
...
Has anyone tried the Digitalmars D compiler (version 2) on Snow Leopard? I'd like to upgrade but I'd rather have a working D compiler.
...
I need to produce several ERM, DMD and ORM diagrams for several projects I am working on. Obviously I'd like them to be a sleek and professional as possible, and while a simple Google search provides a plethora of options, they're all pay-for-use.
Are there any free (or open source) diagram creators available for Mac OSX which produce ...
I have the following code in D
import std.stdio;
class Thing
{
// Fields
private string Name;
// Accessors
public string name() { return Name; }
}
class Place: Thing
{
// Fields
private Place[string] Attached;
// Modifiers
public void attach(Place place) { Attached[place.name()] = place; }
public void detach(Place pl...
I am reading the book from Andrei Alexandrescu about the D programming language. He's an excellent writer and does a pretty good job at explaining aspects of the D language. I however find certain constructs hard to understand when I cannot imagine the ASM output or consequences of certain keywords (such as in, out, etc. or other constru...
I'd really like to get more into D, but the lack of good library support is really hindering me. Therefore I'd like to create some D bindings for existing C libraries I'd like to use. I've never done any binding, but it doesn't look too difficult either.
I'm planning to do this for D2 (not specifically D1, but if it could be for both, e...
I managed to create an little Test-App which uses Objective-C and D which runs fine in the simulator. But as I dont have a 100$ subscription on Apple I dont know if it would run on an Iphone itself. Because dmd of course will compile x86 code.
Would maybe ldc work?
Anyone ever tried this?
...
Here is a simple generator in C#.
IEnumerable<int> Foo()
{
int a = 1, b = 1;
while(true)
{
yield return b;
int temp = a + b;
a = b;
b = temp;
}
}
How do I write a similar generator in Digital Mars D?
(The question is about the yield return sta...
Here is an example:
int[] arr = [ 1, 2, 3, 4, 5 ];
auto foo = filter!("a < 3")(arr);
assert(foo == [ 1, 2 ]); // works fine
Now I want to be able to parameterize the predicate, e.g.
int max = 3;
int[] arr = [ 1, 2, 3, 4, 5 ];
auto foo = filter!("a < max")(arr); // doesn't compile
This snippet won't compile obviously, sine the filte...