I'm looking for a D template library to take an arbitrary variable and marshal it into a transportable bundle. The variable might be a basic value type (int
, char[]
, real
) or might be a struct
or class
and even might contain or be a reference type. A system that can do this without any per type help would be nice but I suspect that it's to much to ask so I'd be happy with something that uses light weight annotations.
If nothing like that exists suggestions on how to structure it would be nice. I can think of a few ways to do the sterilization but I'm not sure how to specify the annotations.
Background: After trying to use ASMX and WCF web services and not likening them I'm felling like I want to try my hand at the RPC problem.
edit: BTW I don't care to much what the format in the middle is (XML, JASON, YAML, binary) as long as it's portable.