On Wed, 20 Aug 2014 23:03:48 +0200 Philippe Sigaud via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
> Can compiler switches be used with the shebang notation? If yes, there > is certainly a GDC flag (-run?) that tells it to run the generated > executable. it's possible to use switches, but GDC is not fitted for such usage anyway. it will not automatically compile included modules, it will not automatically put the binary in predefined place and so on. ah, dmd is not suitable for such usage too, that's why we have rdmd. rdmd can be adapted to use GDC (if compiled with GDC, rdmd will use gdmd instead of dmd), but dmd is faster and the quality of generated code is not so important in scripts.
signature.asc
Description: PGP signature