A way to mixin during runtime?
dangbinghoo
dangbinghoo at gmail.com
Fri Aug 27 07:24:29 UTC 2021
On Friday, 27 August 2021 at 06:52:10 UTC, Kirill wrote:
> Is there a way to do mixin or similar during runtime?
>
> I'm trying to read a csv file and extract data types. Any ideas
> on how this should be approached in D are greatly appreciated.
remember D is a statically compiled language, `mixin` is for
generating code, so, it won't work except you have a runtime code
parser.
you may need a scripting language embedded in your D app to
achieve this.
thx.
More information about the Digitalmars-d-learn
mailing list