std.reflection prototype

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 15 02:31:24 PDT 2015


On 2015-04-14 18:33, bitwise wrote:

> This is one of the main reasons I like the OffsetTypeInfo/offTi()
> option. I think a "name" field would have to be added to OffsetTypeInfo
> for it to be useful, and I have a feeling that would increase the binary
> size by quite a bit.. So I'll have to test it and see.

It needs to be possible to set and get a value of an instance variable 
based on it's name, through runtime reflection. It also needs to bypass 
protection, i.e. "private".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list