No Output with shebang.

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 20 19:14:10 PDT 2014


On Wed, 20 Aug 2014 23:03:48 +0200
Philippe Sigaud via Digitalmars-d-learn
<digitalmars-d-learn at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140821/50caaf9b/attachment.sig>


More information about the Digitalmars-d-learn mailing list