Couldn't we use mixins in run-time?
Dukc
ajieskola at gmail.com
Thu Apr 22 21:01:45 UTC 2021
On Wednesday, 21 April 2021 at 07:50:35 UTC, rempas wrote:
> I'm really wondering, what stops us about using mixins in
> run-time? I'm really interested on learning how they work. For
> my understating, the write the code for use in compile-time and
> then the whole things is compiled. However, I'm really
> wondering what stops us for writing the code and compiling it
> at run-time like it's an interpreter. Anyone that can explain
> how things work to me?
Having runtime mixins in the default language would the downside
that the D runtime would have to include a D interpreter. No
thanks.
Note though, I said in the default language. Having a separate D
interpreter that would be called as an external program would be
different thing altogether. To some extent, you can already do
that by feeding your runtime scripts to rdmd.
More information about the Digitalmars-d
mailing list