[antlr-interest] CSharp2: serialize/deserialize as AST

Johannes Luber JALuber at gmx.de
Thu Jan 22 05:23:21 PST 2009


> At 20:17 22/01/2009, Johannes Luber wrote:
>  >Actually, I don't know how pointers are treated, but I'd be
>  >surprised if the standard formatters don't handle this case
>  >themselves as it is a general case with using references
>  >instead value types in member fields.
> 
> Is it an actual pointer (unsafe something *) or is it just a 
> reference-type field?

I don't believe that the CSharp uses unsafe code. After all, the Java runtime doesn't use it.
> 
> Because binary formatters handle the latter perfectly fine; they 
> can even cope properly with cycles in the object graph (which is 
> what will be the case here -- parent->child->parent).
> 
> The XmlSerializer can't (it's not a binary formatter), but the 
> SoapFormatter can (because it is, even though it outputs XML).

Good to know.

Johannes
-- 
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


More information about the antlr-interest mailing list