Make IN Dlang
Christian Köstlin
christian.koestlin at gmail.com
Wed Nov 2 20:20:49 UTC 2022
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
More information about the Digitalmars-d-learn
mailing list