Compiling this tiny program

 public class a {
  public static void Main() {
   System.Console.WriteLine(32 % 0);
  }
 }

crashes mcs - at least on Windows. Replacing % with / also crashes the compiler. Csc correctly generates a somewhat misleading error. If you disguise the error a little bit, using

  int a = 0;
  ...(32 % a);

then both csc and mcs compile the code. When executed, the .NET framework raises a division by zero exception as does mono. Mint, however, crashes.

bye
--
Stefan Matthias Aust   //
www.3plus4software.de // Inter Deum Et Diabolum Semper Musica Est

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to