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

Larry O'Brien lobrien@email.com
Tue, 19 Nov 2002 00:33:19 +0800


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

> 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!). 

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup