D for scripting?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 19 23:10:06 PST 2017


On 1/20/17 3:59 AM, 岩倉 澪 wrote:
> I feel like the shebang is totally worth it if I could name my file
> without .d and symlink to it. Would it be reasonable to change rdmd to
> allow these features? I'd be happy to look into writing a patch for it
> if it wouldn't be a waste of time.

It would be worth it. I think a fix takes some thinking because if I 
remember correctly the compiler does not accept files without an 
extension as input. So rdmd would need to use a workaround - e.g. create 
a temporary symlink, compile, and remove the symlink. -- Andrei


More information about the Digitalmars-d mailing list