[Mono-dev] DateTime/DateTimeFormatInfo patch to reduce Clone()

Jonathan Pryor jonpryor at vt.edu
Wed Dec 6 05:30:39 EST 2006


On Wed, 2006-12-06 at 14:34 +0900, Atsushi Eno wrote:
> Mirco Bauer wrote:
> > 
> > *cough* lack of const *cough*
>
> I quite don't understand it - unless you think you can declare
> const arrays (which is incorrect).

He's saying that the Common Language Specification should have had the
concept of C++ const correctness.  That way you could declare the array
and its contents as being "const", and the array contents couldn't be
modified by verifiable code.

(Never mind that the addition of const-correctness to C++ resulting in
changing most of the standard library, allows overloading methods with
identical parameter lists with the addition of "const", e.g. "T&
operator[](int);" vs (T& operator[](int) const;", and would introduce
lots of confusion for little comparable benefit to the VB/"I'm in a
hurry and care not for your CS concepts" crowd.)

 - Jon





More information about the Mono-devel-list mailing list