On 02.11.22 17:24, Kagamin wrote:
Another idea is to separate the script and interpreter then compile them together.
```
--- interp.d ---
import script;
import ...more stuff
...boilerplate code
int main()
{
   interpret(script.All);
   return 0;
}

--- script.d ---
#! ?
module script;
import mind;

auto All=Task(...);
...more declarative tasks

--- run ---
dmd /usr/local/interp.d /path/to/script.d
```
Thanks, have to think a little about that :)

Kind regards,
Christian

Reply via email to