Different behavior of dmd and ldc2

Fyodor Ustinov via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Nov 5 13:51:06 PST 2015


Hi!

Simple test:
File "a.d" contained this:
---
module tst;

import std.stdio;

void main() {
     writeln("Hello world");
}
----

After compiling this file by "dmd a.d" I get executable with name 
"a".
After compiling by "ldc2 a.d" - executable with name "tst".

I do not know, who more right in this situation, but DMD is a 
"reference compiler" and his behavior "more correct", I think.

WBR,
     Fyodor.


More information about the digitalmars-d-ldc mailing list