dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]Array fun


From: Michael Stolovitzsky
Subject: [DotGNU]Array fun
Date: Mon, 12 Aug 2002 21:04:35 +0300
User-agent: KMail/1.4.1

I'm pretty confused about the following.

1) Should it compile?
2) Why doesn't it anyway? :)

public class MainClass   {
        public static void Main()
        {
        }

        public void WTF(Array arr)
        {
            int c = 0;
            arr[c] = "A";
        }
};


-- 
"I'm not saying there should be a capital punishment for stupidity, but why 
don't we just take the safety labels off of everything and let the problem 
solve itself?"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]