D Medium · Lesson 4

Compile-time reflection

__traits and std.traits: list members, inspect fields and attributes, and build generic serializers.

Lessons · D Medium · Lesson 4 of 10

Compile-time reflection

__traits and std.traits: list members, inspect fields and attributes, and build generic serializers.

Illustration for D
__traits and std.traits: list members, inspect fields and attributes, and build generic serializers.