mirror 0.0.8

Compile and run time reflection


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

mirror - compile and run time reflection for D

Build Status Coverage

A unified API for compile and runtime reflection in D

D is known for its unparalled compile-time reflection, but the API to do so is distributed among the built-in __traits and the std.traits package in the standard library. There was no one single place with a unified API for doing reflection in D. This package solves that problem.

Furthermore, it attempts to, at the same time, extend the compile-time reflection capabilities of D into the runtime realm and allow users to write "regular" code with mixins and CTFE instead of template metaprogramming. This is done by transforming types and symbols into strings. See the tests and the mirror.ctfe package for more.

Authors:
  • Atila Neves
Dependencies:
none
Versions:
0.3.3 2022-Nov-29
0.3.2 2022-Aug-29
0.3.1 2021-Sep-30
0.3.0 2020-Jul-24
0.2.1 2020-Jun-16
Show all 27 versions
Download Stats:
  • 11 downloads today

  • 72 downloads this week

  • 367 downloads this month

  • 196723 downloads total

Score:
2.3
Short URL:
mirror.dub.pm