Mono works fine with my app, but when I try to compile a function like
int Yo(int a, int b = 1) {
// blah...
}
It doesn’t work, it says that “Default parameter specifiers are not permitted”
According to Mono’s website
The Mono C# compiler is considered feature complete for C# 1.0, C# 2.0 and C# 3.0 (ECMA). A preview of C# 4.0 is distributed with Mono 2.6, and a complete C# 4.0 implementation is available with Mono 2.8 or when building Mono from our trunk source code release.
How can I successfully compile it?
Our C# 4.0 compiler is available as the “dmcs” command as opposed to the “gmcs”, “smcs” or “mcs” commands.
After Mono 2.8 we will work towards having a single command line compiler that will let you select the various profiles using a flag, but for now we created different scripts that act as frontends to the API profile/language level that you want to use