[Mono-dev] [PATCH] Improve compiler generated class handling and ReferenceEquality comparer.

Marek Safar marek.safar at seznam.cz
Tue Mar 2 04:15:35 EST 2010


Hello Kornél,
>
> >> Don't make compiler generated classes sealed by default.
> > What is benefit of not doing that?
>
> This is also related to the same class because that was explicitly 
> removing the sealed modifier to enable the static modifier.
>
> Although currently only a single compiler generated class benefits 
> from both of these modifications I don't see any drawbacks and in my 
> opinion the changes result in a more properly designed compiler 
> generated class infrastructure.
I am not sure what does "more properly designed compiler generated class 
infrastructure" mean but removing sealed from other generated classes 
it's not. The fix should be to add a new overload to avoid clearing the 
sealed flag.

Marek


More information about the Mono-devel-list mailing list