Fixing module-scope private

David Nadlinger see at klickverbot.at
Mon Jan 28 12:15:38 PST 2013


On Monday, 28 January 2013 at 20:10:16 UTC, Jacob Carlborg wrote:
> The serializer would be a lot less user friendly if the user 
> had to manually serialize each protected field.

Can Orange work on structs/classes that have not been intended to 
be used with it, e.g. imported from some other arbitrary module?

If not (and your mention of annotations seems to suggest that), 
the easiest solution would be to just provide the serialization 
code in the module where the class is defined (e.g. a public 
static member function), no?

David


More information about the Digitalmars-d mailing list