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
```

Reply via email to