dmd or gdc install on Ubuntu AMD64

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Jun 13 11:01:27 PDT 2007


François-Xavier Pineau wrote:
> Just a question:
> with dmd it seams possible to execute a .d file like a script with:
> #!/.../dmd

If you add " -run" at the end, yes.

> It is possible with gdc too??
> I'am just able to compile using:
>  gdmd myprog.d

Not directly AFAIK. But the source to rdmd is floating around here 
somewhere, and IIRC at least one of bud/build and rebuild has this 
functionality built-in (as well as their main purpose of automatically 
handling imported modules, allowing you to also do this for multi-module 
programs).


More information about the Digitalmars-d-learn mailing list