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

Ben Gillis wbgillis at gmail.com
Thu Jan 22 15:19:02 PST 2009


> > I don't believe that the CSharp uses unsafe code. After all, the Java 
> > runtime doesn't use it.
I've only found managed code, nothing unsafe.


----- Original Message ----- 
From: "Johannes Luber" <JALuber at gmx.de>
To: "Gavin Lambert" <antlr at mirality.co.nz>; <wbgillis at gmail.com>
Cc: <antlr-interest at antlr.org>
Sent: Thursday, January 22, 2009 7:23 AM
Subject: Re: [antlr-interest] CSharp2: serialize/deserialize as AST


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