Make IN Dlang

Kagamin spam at here.lot
Wed Nov 2 16:24:57 UTC 2022


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


More information about the Digitalmars-d-learn mailing list