[Mono-list] ADV: Thinking in C# Release Candidate Ebook Available

Paolo Molaro lupus@ximian.com
Mon, 18 Nov 2002 19:10:54 +0100


On 11/19/02 Larry O'Brien wrote:
> > I couldn't
> > find the examples related to rectangular array initializers: 
> > could you please tell me what sample it was? 
> 
> Chapter 5's MultiDimArray.cs demonstrates what I believe to be a problem. Mono compiles it okay, but on running you get (erroneously, I believe) an IndexOutOfRangeException at line 58: 
> 
>     // Rectangular array of reference objects:
>     IntHolder[,] a4 = {
>       { new IntHolder(1), new IntHolder(2)},
>       { new IntHolder(3), new IntHolder(4)},
>       { new IntHolder(5), new IntHolder(6)},
>     };
> 
> I entered this in bugzilla a while ago, but I don't know how to rediscover its status.

I tryed that, it compiles and runs fine with the current cvs.
I'll try to dig up the bug report to see if it's still there.

> > BTW: if me or somebody else provides a set of makefiles (or
> > changes to the existing makefiles) to easily compile the 
> > examples with mcs, would you include it in the zip file?
> 
> Abso-freakin-lutely! One of the most disappointing things in the final
> push for publication is that we decided we had to back off an explicit
> commitment to Mono compatibility because we haven't set things up for
> a Mono make, regression test, etc. Any help from the Mono community in
> terms of feedback is hugely appreciated (many people downloaded the May
> draft and helped shape the final book -- thank you!).

Ok. If nobody beats me to it, I'll write the makefiles next weekend.
Thanks!

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better