Reflection/Introspection?

Manu turkeyman at gmail.com
Wed Oct 16 19:49:19 PDT 2013


On 17 October 2013 11:47, DDD <dcb854d0bfb1 at f98b7c56a69c.anonbox.net> 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?
>

Yes, there is quite thorough reflection in D. Serialisers are plentiful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131017/1bec1ab8/attachment.html>


More information about the Digitalmars-d mailing list