Reflection/Introspection?

Jacob Carlborg doob at me.com
Thu Oct 17 00:34:10 PDT 2013


On 2013-10-17 03:47, DDD wrote:
> Does D have any reflection/introspection?
>
> I'd like to do something like this
>
> class Contact
> {
> string first, last
> int number
> }
>
> contact = json_deserialized!Contact(json_string);
>
> Is something like that possible?

If you need something more advanced you can try Orange:

https://github.com/jacob-carlborg/orange

Soon (hopefully) to be integrated to Phobos as std.serialization.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list