Ldc2 vs ldmd2 what is the difference?

I recently installed ldc via hombrew on my Mac and tested the script code from Wiki D when I noticed that using ldmd2 to compile my program also does not start my program after. What is the difference, as this is the same behavior as ldc2.

Here is my program

import std.stdio;
void main()
{
    writeln("Hello, world without explicit compilations!");
}

EDIT: The website states: β€œFor small projects that are easy to compile and run in one step. Most (if not all) of the compiler packages contain a tool called rdmd / gdmd / ldmd or similar. For training purposes, we will call it rdmd " What I take from this depends on which compiler is using, but in the case of ldc I have to use ldmd.

+4
source share
1

ldmd2 - script ldc2, dmd ldc.

, , ..

r dmd, , , . rdmd , , .

: https://github.com/D-Programming-Language/tools/blob/master/rdmd.d

ldmd2.

+3

Source: https://habr.com/ru/post/1629621/


All Articles