Re: Calling / running / executing .d script from another .d script

2019-07-29 Thread Kagamin via Digitalmars-d-learn
On Sunday, 28 July 2019 at 12:56:12 UTC, BoQsc wrote: Right now, I'm thinking what is correct way to run another .d script from a .d script. Do you have any suggestions? You mean something like execute(["rdmd", "another.d"]); ?

Re: Calling / running / executing .d script from another .d script

2019-07-28 Thread Ali Çehreli via Digitalmars-d-learn
On 07/28/2019 05:56 AM, BoQsc wrote: Right now, I'm thinking what is correct way to run another .d script from a .d script. Do you have any suggestions? I can be easier than a shared library solution that Max Haughton described. (None of the following code are compiled.) If you have the foll

Re: Calling / running / executing .d script from another .d script

2019-07-28 Thread Max Haughton via Digitalmars-d-learn
On Sunday, 28 July 2019 at 12:56:12 UTC, BoQsc wrote: Right now, I'm thinking what is correct way to run another .d script from a .d script. Do you have any suggestions? You'd need to bring a compiler with you and then build it into a shared library (then dlopen it). To do this you'd need a

Calling / running / executing .d script from another .d script

2019-07-28 Thread BoQsc via Digitalmars-d-learn
Right now, I'm thinking what is correct way to run another .d script from a .d script. Do you have any suggestions?