std.reflection prototype
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 14 09:33:18 PDT 2015
On Tue, 14 Apr 2015 04:16:16 -0400, Jacob Carlborg <doob at me.com> wrote:
> On 2015-04-14 07:03, bitwise wrote:
>
>> You may want to look at "Orange".
>> https://github.com/jacob-carlborg/orange
>>
>> The API is clean, and non-invasive. The only downside for me, is that in
>> order to serialize a class by a base pointer, you have to register it at
>> compile time.
>
> Yeah, this will require runtime reflection to avoid the registering of
> the type.
>
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.
More information about the Digitalmars-d
mailing list