Am Sat, 09 Nov 2013 14:38:48 +0100 schrieb Jacob Carlborg <[email protected]>:
> On 2013-11-09 01:38, Marco Leise wrote: > > > Next a symlink should be established to the current > > implementation of dmd, e.g.: /bin/dmd -> /bin/ldmd2. > > Wouldn't it be better to have a symlink called "dc", similar to "cc" for > the C compiler. But that would require the DMD release to included a > "dc" symlink and have it available on all platforms. And also people > start using that instead of directly using dmd. > > On the other hand, it would be better to hide these things behind a tool > like dub. "dmd" and it's ilk (gdmd, ldmd2) have a known command line syntax, "dc" doesn't. Symlinks are most useful when the semantic stays the same. For example you can have "sh" be a link to "bash" since bash recognizes being invoked as "sh" and emulates it. FWIW, DC as an environment variable across systems might be a good thing. You can have that on Windows, too. Looking at the file part of the path you could tell if it is ldc2, dmd, gdc or rdmd... -- Marco
