Accessing Private Fields from Outside

gölgeliyele usuldan at gmail.com
Wed May 18 03:32:15 PDT 2011


On 5/18/11 5:30 AM, Jacob Carlborg wrote:
>
> You can have a look at my serialization library, Orange:
> http://www.dsource.org/projects/orange
>
> I don't think it works with the latest compilers but you have have a
> look at the source:
> http://www.dsource.org/projects/orange/browser/orange/util/Reflection.d#L277

This is interesting. The list of limitations seem quite minimal. You 
mention:

'Due to several bugs in the compiler even the D2 version requires you to 
register a serializer when serializing through base class references'

Is there a list of these bugs? Would resolving these bugs remove the 
need for registration functions?

Would it be possible to have a library like this in Phobos? Are there 
any performance gotchas?





More information about the Digitalmars-d mailing list