Fixing module-scope private

Jacob Carlborg doob at me.com
Mon Jan 28 12:38:31 PST 2013


On 2013-01-28 21:15, David Nadlinger wrote:

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

Yes. It can serialize arbitrary third party types without any extra code.

> 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?

That's also possible.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list