Dynamic templated virtuals - I still often want them
Tove
tove at fransson.se
Thu Jul 23 10:40:26 UTC 2020
On Thursday, 23 July 2020 at 10:27:14 UTC, Arafel wrote:
> On 23/7/20 12:18, Arafel wrote:
>
> If you could do RT introspection the same way you can do it at
> compile time (for instance access to the individual fields),
> this wouldn't be needed.
I had one project where I had to solve the same problem both in
C# and in D.
In C# I first used 'dynamic' for prototyping.
+ Simple
- Slow
Later I had to optimize it by doing "RT introspection" and
caching the result.
+ Fast
- Somewhat complex
Adams proposal is both simple and fast out of the box.
More information about the Digitalmars-d
mailing list